• T
    smpboot/threads, watchdog/core: Avoid runtime allocation · 0d85923c
    Thomas Gleixner 提交于
    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: NThomas Gleixner <tglx@linutronix.de>
    Reviewed-by: NDon 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.deSigned-off-by: NIngo Molnar <mingo@kernel.org>
    0d85923c
watchdog.c 22.9 KB