]> 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)
committerChuck Anderson <chuck.anderson@oracle.com>
Fri, 5 Feb 2016 11:43:20 +0000 (03:43 -0800)
commit5915b6e90627b23db61d47c65827b09f7f3064ba
treececb77ada1e669d0ce93ed9e4ccfb9ce74270b32
parent92218714c37842074876558b74a8d8f0f90dcec8
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>
(cherry picked from commit a2621b7619e9c680813232c9da3a71088688ec3c)
drivers/xen/preempt.c