aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/printk
diff options
context:
space:
mode:
authorVincent Chen <vincentc@andestech.com>2019-01-03 11:32:33 +0800
committerPalmer Dabbelt <palmer@sifive.com>2019-01-23 12:56:19 -0800
commit99fd6e875d0c24448a5e2c241422a691be46b241 (patch)
tree4b253b38db1d5a3653ef38fd01d3fb0599c877de /kernel/printk
parent49a57857aeea06ca831043acbb0fa5e0f50602fd (diff)
downloadlinux-99fd6e875d0c24448a5e2c241422a691be46b241.tar.gz
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>
Diffstat (limited to 'kernel/printk')
0 files changed, 0 insertions, 0 deletions