]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xen/preempt: use need_resched() instead of should_resched()
authorKonstantin Khlebnikov <khlebnikov@yandex-team.ru>
Wed, 15 Jul 2015 09:52:01 +0000 (12:52 +0300)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Mon, 30 Nov 2015 19:38:22 +0000 (14:38 -0500)
commita2621b7619e9c680813232c9da3a71088688ec3c
tree3ecf0e51b91ad5af10e82a51d0d8da5219957965
parentb19b9231523ba06c961a3807f58814fd8071d176
xen/preempt: use need_resched() instead of should_resched()

This code is used only when CONFIG_PREEMPT=n and only in non-atomic
context: xen_in_preemptible_hcall is set only in
privcmd_ioctl_hypercall().  Thus preempt_count is zero and
should_resched() is equal to need_resched().

Signed-off-by: Konstantin Khlebnikov <khlebnikov@yandex-team.ru>
Signed-off-by: David Vrabel <david.vrabel@citrix.com>
(cherry picked from commit a7da51ae10032a507ddeae6a490916eadbd1e10a)
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
drivers/xen/preempt.c