]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
x86/kgdb: Replace bool_int_array[NR_CPUS] with bitmap
authorDenys Vlasenko <dvlasenk@redhat.com>
Sat, 26 Sep 2015 12:47:17 +0000 (14:47 +0200)
committerIngo Molnar <mingo@kernel.org>
Mon, 28 Sep 2015 08:13:31 +0000 (10:13 +0200)
commit0d44975d1e2791f6df2b84b182f49d815ba3c9e0
tree1739c9a93bf592af4245a2ff1595aae2af74fc98
parent097f70b3c4d84ffccca15195bdfde3a37c0a7c0f
x86/kgdb: Replace bool_int_array[NR_CPUS] with bitmap

Straigntforward conversion from:

    int was_in_debug_nmi[NR_CPUS]

to:

    DECLARE_BITMAP(was_in_debug_nmi, NR_CPUS)

Saves about 2 kbytes in BSS for NR_CPUS=512.

Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Jason Wessel <jason.wessel@windriver.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: linux-kernel@vger.kernel.org
Link: http://lkml.kernel.org/r/1443271638-2568-1-git-send-email-dvlasenk@redhat.com
[ Tidied up the code a bit. ]
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/kernel/kgdb.c