diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2019-07-22 20:47:24 +0200 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2019-07-25 15:47:37 +0200 |
commit | b9fa6442f7043e2cdd247905d4f3b80f2e9605cb (patch) | |
tree | 94f8a7ccb98e93e675a71730da84c8a77cf9389d /tools/memory-model | |
parent | e797bda3fd29137f6c151dfa10ea6a61c17895ce (diff) | |
download | linux-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 'tools/memory-model')
0 files changed, 0 insertions, 0 deletions