diff options
author | 2019-01-03 11:32:33 +0800 | |
---|---|---|
committer | 2019-01-23 12:56:19 -0800 | |
commit | 99fd6e875d0c24448a5e2c241422a691be46b241 (patch) | |
tree | 4b253b38db1d5a3653ef38fd01d3fb0599c877de /tools/perf/scripts/python/export-to-postgresql.py | |
parent | Linux 5.0-rc3 (diff) | |
download | wireguard-linux-99fd6e875d0c24448a5e2c241422a691be46b241.tar.xz wireguard-linux-99fd6e875d0c24448a5e2c241422a691be46b241.zip |
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 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions