diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2017-09-12 21:37:09 +0200 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2017-09-14 11:41:06 +0200 |
commit | 0d85923c7a81719567311ba0eae8ecb2efd4c8a0 (patch) | |
tree | 34c854caa12350d56552dbae1545d6484a8d13c3 /include/xen | |
parent | 05ba3de74a3f499dcaa37b186220aaf174c95a4b (diff) | |
download | linux-stable-0d85923c7a81719567311ba0eae8ecb2efd4c8a0.tar.gz linux-stable-0d85923c7a81719567311ba0eae8ecb2efd4c8a0.tar.bz2 linux-stable-0d85923c7a81719567311ba0eae8ecb2efd4c8a0.zip |
smpboot/threads, watchdog/core: Avoid runtime allocation
smpboot_update_cpumask_threads_percpu() allocates a temporary cpumask at
runtime. This is suboptimal because the call site needs more code size for
proper error handling than a statically allocated temporary mask requires
data size.
Add static temporary cpumask. The function is globaly serialized, so no
further protection required.
Remove the half baken error handling in the watchdog code and get rid of
the export as there are no in tree modular users of that function.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Don Zickus <dzickus@redhat.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Chris Metcalf <cmetcalf@mellanox.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Nicholas Piggin <npiggin@gmail.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Sebastian Siewior <bigeasy@linutronix.de>
Cc: Ulrich Obergfell <uobergfe@redhat.com>
Link: http://lkml.kernel.org/r/20170912194147.297288838@linutronix.de
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'include/xen')
0 files changed, 0 insertions, 0 deletions