x86, apic: Limit apic dumping, introduce new show_lapic= setup option
authorCyrill Gorcunov <gorcunov@openvz.org>
Tue, 13 Oct 2009 20:07:05 +0000 (00:07 +0400)
committerIngo Molnar <mingo@elte.hu>
Wed, 14 Oct 2009 07:17:01 +0000 (09:17 +0200)
commit2626eb2b2fd958dc0f683126aa84e93b939699a1
treec4f8b6f1e577ab09ea8355e1cd67d0b6e6d72da8
parenta933c61829509eb27083146dda392132baa0969a
x86, apic: Limit apic dumping, introduce new show_lapic= setup option

In case if a system has a large number of cpus printing apics
contents may consume a long time period.

We limit such an output by 1 apic by default. But to have an
ability to see all apics or some part of them we introduce
"show_lapic" setup option which allow us to limit/unlimit the
number of APICs being dumped.

Example: apic=debug show_lapic=5, or apic=debug show_lapic=all

Also move apic_verbosity checking upper that way so helper routines
do not need to inspect it at all.

Suggested-by: Yinghai Lu <yinghai@kernel.org>
Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
Cc: yinghai@kernel.org
Cc: macro@linux-mips.org
LKML-Reference: <20091013201022.926793122@openvz.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/apic/io_apic.c