powerpc/sched: Cleanup vcpu_is_preempted()
authorAneesh Kumar K.V <aneesh.kumar@linux.ibm.com>
Tue, 14 Nov 2023 07:12:19 +0000 (12:42 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 15 Dec 2023 02:50:39 +0000 (13:50 +1100)
commit6f4b7052daa060e7d20d6d599697b8ac702a7e69
tree78de192922a578617b5a0c7444513305a8200c50
parenta143892cb77c5397fd4356bbef9982abe4f3c5a5
powerpc/sched: Cleanup vcpu_is_preempted()

No functional change in this patch. A helper is added to find if
vcpu is dispatched by hypervisor. Use that instead of opencoding.
Also clarify some of the comments.

Signed-off-by: "Aneesh Kumar K.V" <aneesh.kumar@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20231114071219.198222-1-aneesh.kumar@linux.ibm.com
arch/powerpc/include/asm/paravirt.h