linux_dsm_epyc7002/arch/riscv
Vincent Chen 99fd6e875d
RISC-V: Add _TIF_NEED_RESCHED check for kernel thread when CONFIG_PREEMPT=y
The cond_resched() can be used to yield the CPU resource if
CONFIG_PREEMPT is not defined. Otherwise, cond_resched() is a dummy
function. In order to avoid kernel thread occupying entire CPU,
when CONFIG_PREEMPT=y, the kernel thread needs to follow the
rescheduling mechanism like a user thread.

Signed-off-by: Vincent Chen <vincentc@andestech.com>
Tested-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Palmer Dabbelt <palmer@sifive.com>
2019-01-23 12:56:19 -08:00
..
boot RISC-V: Build flat and compressed kernel images 2018-11-20 05:19:09 -08:00
configs RISC-V: defconfig: Enable RISC-V SBI earlycon support 2018-12-17 10:23:46 -08:00
include Fix a handful of audit-related issue 2019-01-07 08:45:47 -08:00
kernel RISC-V: Add _TIF_NEED_RESCHED check for kernel thread when CONFIG_PREEMPT=y 2019-01-23 12:56:19 -08:00
lib RISC-V: lib: minor asm cleanup 2018-12-21 08:17:02 -08:00
mm mm: remove include/linux/bootmem.h 2018-10-31 08:54:16 -07:00
Kconfig Fix a handful of audit-related issue 2019-01-07 08:45:47 -08:00
Kconfig.debug RISC-V: Remove EARLY_PRINTK support 2018-12-17 10:23:46 -08:00
Makefile RISC-V: Build flat and compressed kernel images 2018-11-20 05:19:09 -08:00