anolis-cloud-kernel/drivers/misc
Huang Ying 5e8fab7191 anolis: ccs: add CPU utilization control functionality
ANBZ: #20511

The "scan" command of the cmn700 cache scan misc device file can take
up to several hundreds milliseconds.  The CPU utilization during
command run will be 100%.  Although use cond_sched() during "scan"
running to release CPU resource for other workloads, the high CPU
utilization may be undesirable.

So, in the patch, add "cpu_percent" parameter to "set_param" command
of the misc device file.  If "cpu_percent" is less than 100, use
schedule_timeout_interruptible() in "scan" command running to reduce the
CPU usage to the specified value.

Signed-off-by: Huang Ying <ying.huang@linux.alibaba.com>
Reviewed-by: Feng Tang <feng.tang@linux.alibaba.com>
Reviewed-by: Guixin Liu <kanie@linux.alibaba.com>
Link: https://gitee.com/anolis/cloud-kernel/pulls/5427
2025-07-10 05:33:28 +00:00
..
altera-stapl
c2port
cardreader misc: rtsx_usb: set return value in rsp_buf alloc err path 2022-07-12 16:32:22 +02:00
cb710
cxl
echo
eeprom eeprom: at24: fix memory corruption race condition 2025-03-31 02:07:27 +00:00
genwqe
habanalabs
ibmasm
lis3lv02d
lkdtm lkdtm/usercopy: Expand size of "out of frame" object 2022-06-14 18:32:41 +02:00
mei mei: me: add raptor lake point S DID 2022-06-22 14:13:18 +02:00
ocxl misc: ocxl: fix possible double free in ocxl_file_register_afu 2022-06-09 10:21:14 +02:00
sgi-gru misc: sgi-gru: fix use-after-free error in gru_set_context_option, gru_fault and gru_handle_user_call_os 2023-10-23 00:13:38 +00:00
sgi-xp
ti-st
uacce
vmw_vmci VMCI: Fix use-after-free when removing resource in vmci_resource_remove() 2024-10-15 07:43:57 +00:00
Kconfig anolis: ccs: add misc device driver cmn700_cache_scan 2025-07-10 05:33:28 +00:00
Makefile anolis: ccs: add misc device driver cmn700_cache_scan 2025-07-10 05:33:28 +00:00
ad525x_dpot-i2c.c
ad525x_dpot-spi.c
ad525x_dpot.c
ad525x_dpot.h
apds990x.c
apds9802als.c
atmel-ssc.c misc: atmel-ssc: Fix IRQ check in ssc_probe 2022-06-22 14:13:16 +02:00
atmel_tclib.c
bh1770glc.c
cmn700_cache_scan.c anolis: ccs: add CPU utilization control functionality 2025-07-10 05:33:28 +00:00
cs5535-mfgpt.c
ds1682.c
dummy-irq.c
enclosure.c
fastrpc.c misc: fastrpc: Fix use-after-free race condition for maps 2025-03-31 02:21:21 +00:00
hisi_hikey_usb.c
hmc6352.c
hpilo.c
hpilo.h
ibmvmc.c
ibmvmc.h
ics932s401.c
isl29003.c
isl29020.c
kgdbts.c anolis: sw64: kgdb: add support for sw64 2023-05-30 05:56:52 +00:00
lattice-ecp3-config.c
pch_phub.c
pci_endpoint_test.c
phantom.c
pti.c
pvpanic.c
qcom-coincell.c
sram-exec.c
sram.c
sram.h
sunway-ged.c anolis: sw64: add dependency for sunway-ged driver 2024-07-29 08:33:38 +00:00
tifm_7xx1.c
tifm_core.c
tsl2550.c
virt_plat_dev.c virt_plat_dev: Register the virt platform device driver 2024-07-08 03:06:38 +00:00
vmw_balloon.c
xilinx_sdfec.c