i386: do not BUG_ON() when MSR is unknown
authorStephane Eranian <eranian@hpl.hp.com>
Fri, 19 Oct 2007 18:35:04 +0000 (20:35 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Fri, 19 Oct 2007 18:35:04 +0000 (20:35 +0200)
commit124d395fd05efb65d00ca23c7bcc86c272bd8813
tree1018f5783be5e218a93ec5be9aceab9731dd1734
parent71b31233a215be27e2efbcc0e739cbebb0bde078
i386: do not BUG_ON() when MSR is unknown

Here is a small patch to change the behavior of the PMU msr allocator
to avoid BUG_ON() when the MSR is unknwon. Instead, it now returns
ok, which means "I do not manage". The current allocator is not
yet managing the full set of PMU registers (e.g., GLOBAL_* on Core 2).

[watchdog] do not BUG_ON() in the MSR allocator if MSR is unknown, return ok
instead

Signed-off-by: Stephane Eranian <eranian@hpl.hp.com>
Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
arch/x86/kernel/cpu/perfctr-watchdog.c