]> git.baikalelectronics.ru Git - kernel.git/commit
x86/kconfig: Disable CONFIG_GENERIC_HWEIGHT and remove __HAVE_ARCH_SW_HWEIGHT
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Sun, 12 May 2019 12:52:01 +0000 (21:52 +0900)
committerIngo Molnar <mingo@kernel.org>
Mon, 13 May 2019 09:07:33 +0000 (11:07 +0200)
commita050f564ef727a48e717bafa48245af1dfa686f7
tree661224b2fd02f0e2026bb1ee612738ddf2268031
parentd2e4ffa8db2b0a1f196087bba265d13f75165fbd
x86/kconfig: Disable CONFIG_GENERIC_HWEIGHT and remove __HAVE_ARCH_SW_HWEIGHT

Remove an unnecessary arch complication:

arch/x86/include/asm/arch_hweight.h uses __sw_hweight{32,64} as
alternatives, and they are implemented in arch/x86/lib/hweight.S

x86 does not rely on the generic C implementation lib/hweight.c
at all, so CONFIG_GENERIC_HWEIGHT should be disabled.

__HAVE_ARCH_SW_HWEIGHT is not necessary either.

No change in functionality intended.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Uros Bizjak <ubizjak@gmail.com>
Link: http://lkml.kernel.org/r/1557665521-17570-1-git-send-email-yamada.masahiro@socionext.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/Kconfig
arch/x86/include/asm/arch_hweight.h
lib/hweight.c