diff --git a/drivers/xen/preempt.c b/drivers/xen/preempt.c index a1800c150839a79a3dabdae4ef52956346d5244a..08cb419eb4e63c90f30ea7cdb541d31c14da2391 100644 --- a/drivers/xen/preempt.c +++ b/drivers/xen/preempt.c @@ -31,7 +31,7 @@ EXPORT_SYMBOL_GPL(xen_in_preemptible_hcall); asmlinkage __visible void xen_maybe_preempt_hcall(void) { if (unlikely(__this_cpu_read(xen_in_preemptible_hcall) - && should_resched())) { + && need_resched())) { /* * Clear flag as we may be rescheduled on a different * cpu.