]> git.baikalelectronics.ru Git - kernel.git/commit
x86/apic: Avoid wrong warning when parsing 'apic=' in X86-32 case
authorDou Liyang <douly.fnst@cn.fujitsu.com>
Mon, 4 Dec 2017 04:03:12 +0000 (12:03 +0800)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 28 Dec 2017 11:32:06 +0000 (12:32 +0100)
commitd3294c2c6bac622c626ad5b34b7db9c2b92d9185
tree4e1cc9ffdd07d206ce6345d9111bfbe2cc1c5a59
parent7551fbcaf65856e279e09b339f2d506acb9c8575
x86/apic: Avoid wrong warning when parsing 'apic=' in X86-32 case

There are two consumers of apic=:
  apic_set_verbosity() for setting the APIC debug level;
  parse_apic() for registering APIC driver by hand.

X86-32 supports both of them, but sometimes, kernel issues a weird warning.
eg: when kernel was booted up with 'apic=bigsmp' in command line,
early_param would warn like that:

...
[    0.000000] APIC Verbosity level bigsmp not recognised use apic=verbose or apic=debug
[    0.000000] Malformed early option 'apic'
...

Wrap the warning code in CONFIG_X86_64 case to avoid this.

Signed-off-by: Dou Liyang <douly.fnst@cn.fujitsu.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: peterz@infradead.org
Cc: rdunlap@infradead.org
Cc: corbet@lwn.net
Link: https://lkml.kernel.org/r/20171204040313.24824-1-douly.fnst@cn.fujitsu.com
arch/x86/kernel/apic/apic.c