summaryrefslogtreecommitdiffstats
path: root/samples/vfio-mdev/mdpy-defs.h
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2019-07-22 20:47:24 +0200
committerThomas Gleixner <tglx@linutronix.de>2019-07-25 15:47:37 +0200
commitb9fa6442f7043e2cdd247905d4f3b80f2e9605cb (patch)
tree94f8a7ccb98e93e675a71730da84c8a77cf9389d /samples/vfio-mdev/mdpy-defs.h
parente797bda3fd29137f6c151dfa10ea6a61c17895ce (diff)
downloadlinux-stable-b9fa6442f7043e2cdd247905d4f3b80f2e9605cb.tar.gz
linux-stable-b9fa6442f7043e2cdd247905d4f3b80f2e9605cb.tar.bz2
linux-stable-b9fa6442f7043e2cdd247905d4f3b80f2e9605cb.zip
cpumask: Implement cpumask_or_equal()
The IPI code of x86 needs to evaluate whether the target cpumask is equal to the cpu_online_mask or equal except for the calling CPU. To replace the current implementation which requires the usage of a temporary cpumask, which might involve allocations, add a new function which compares a cpumask to the result of two other cpumasks which are or'ed together before comparison. This allows to make the required decision in one go and the calling code then can check for the calling CPU being set in the target mask with cpumask_test_cpu(). Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org> Link: https://lkml.kernel.org/r/20190722105220.585449120@linutronix.de
Diffstat (limited to 'samples/vfio-mdev/mdpy-defs.h')
0 files changed, 0 insertions, 0 deletions