]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
torture: Reduce #ifdefs for preempt_schedule()
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Mon, 16 Oct 2017 18:05:03 +0000 (11:05 -0700)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Mon, 11 Dec 2017 17:18:22 +0000 (09:18 -0800)
commitcc1321c96f855525fbd847fec130f000daa1bb1f
treecdfa9485981454a8de6d7b506970008051184386
parentcf8d8b00518d9228d603fcd17de47c31deb70b8f
torture: Reduce #ifdefs for preempt_schedule()

This commit adds a torture_preempt_schedule() that is nothingness
in !PREEMPT builds and is preempt_schedule() otherwise.  Then
torture_preempt_schedule() is used to eliminate several ugly #ifdefs,
both in rcutorture and in locktorture.

Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
include/linux/torture.h
kernel/locking/locktorture.c
kernel/rcu/rcutorture.c