![]() 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 |
||
---|---|---|
.. | ||
altera-stapl | ||
c2port | ||
cardreader | ||
cb710 | ||
cxl | ||
echo | ||
eeprom | ||
genwqe | ||
habanalabs | ||
ibmasm | ||
lis3lv02d | ||
lkdtm | ||
mei | ||
ocxl | ||
sgi-gru | ||
sgi-xp | ||
ti-st | ||
uacce | ||
vmw_vmci | ||
Kconfig | ||
Makefile | ||
ad525x_dpot-i2c.c | ||
ad525x_dpot-spi.c | ||
ad525x_dpot.c | ||
ad525x_dpot.h | ||
apds990x.c | ||
apds9802als.c | ||
atmel-ssc.c | ||
atmel_tclib.c | ||
bh1770glc.c | ||
cmn700_cache_scan.c | ||
cs5535-mfgpt.c | ||
ds1682.c | ||
dummy-irq.c | ||
enclosure.c | ||
fastrpc.c | ||
hisi_hikey_usb.c | ||
hmc6352.c | ||
hpilo.c | ||
hpilo.h | ||
ibmvmc.c | ||
ibmvmc.h | ||
ics932s401.c | ||
isl29003.c | ||
isl29020.c | ||
kgdbts.c | ||
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 | ||
tifm_7xx1.c | ||
tifm_core.c | ||
tsl2550.c | ||
virt_plat_dev.c | ||
vmw_balloon.c | ||
xilinx_sdfec.c |