OSDN Git Service

x86/io_delay: Define IO_DELAY macros in C instead of Kconfig
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Tue, 21 May 2019 07:22:11 +0000 (16:22 +0900)
committerIngo Molnar <mingo@kernel.org>
Fri, 24 May 2019 06:46:06 +0000 (08:46 +0200)
commitc2d64c7ec4de6385150aa79570c438b4ba49c243
treedb987b6304202578e7f9a14e89064cc025418946
parente62a4239c3dfd182a7e676cfe9efb1f4cec5ca25
x86/io_delay: Define IO_DELAY macros in C instead of Kconfig

CONFIG_IO_DELAY_TYPE_* are not kernel configuration at all. They just
define constant values, 0, 1, 2, and 3. Define them by #define in C.

CONFIG_DEFAULT_IO_DELAY_TYPE can also be defined in C by using #ifdef
and #define directives.

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>
Link: http://lkml.kernel.org/r/20190521072211.21014-2-yamada.masahiro@socionext.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/Kconfig.debug
arch/x86/kernel/io_delay.c