aboutsummaryrefslogtreecommitdiffstats
path: root/arch/ia64/kernel/perfmon.c
diff options
context:
space:
mode:
authorAshok Raj <ashok.raj@intel.com>2005-11-11 17:32:40 -0500
committerTony Luck <tony.luck@intel.com>2006-01-05 13:24:20 -0500
commitff741906ad3cf4b8ca1a958acb013a97a6381ca2 (patch)
tree66a4c2dbacd4c10015824a6789f9206693003092 /arch/ia64/kernel/perfmon.c
parentdb9edfd7e339ca4113153d887e782dd05be5a9eb (diff)
[IA64] support for cpu0 removal
here is the BSP removal support for IA64. Its pretty much the same thing that was released a while back, but has your feedback incorporated. - Removed CONFIG_BSP_REMOVE_WORKAROUND and associated cmdline param - Fixed compile issue with sn2/zx1 due to a undefined fix_b0_for_bsp - some formatting nits (whitespace etc) This has been tested on tiger and long back by alex on hp systems as well. Signed-off-by: Ashok Raj <ashok.raj@intel.com> Signed-off-by: Tony Luck <tony.luck@intel.com>
Diffstat (limited to 'arch/ia64/kernel/perfmon.c')
-rw-r--r--arch/ia64/kernel/perfmon.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/ia64/kernel/perfmon.c b/arch/ia64/kernel/perfmon.c
index 410d4804fa6e..18c51c37a9a3 100644
--- a/arch/ia64/kernel/perfmon.c
+++ b/arch/ia64/kernel/perfmon.c
@@ -6718,6 +6718,7 @@ __initcall(pfm_init);
6718void 6718void
6719pfm_init_percpu (void) 6719pfm_init_percpu (void)
6720{ 6720{
6721 static int first_time=1;
6721 /* 6722 /*
6722 * make sure no measurement is active 6723 * make sure no measurement is active
6723 * (may inherit programmed PMCs from EFI). 6724 * (may inherit programmed PMCs from EFI).
@@ -6730,8 +6731,10 @@ pfm_init_percpu (void)
6730 */ 6731 */
6731 pfm_unfreeze_pmu(); 6732 pfm_unfreeze_pmu();
6732 6733
6733 if (smp_processor_id() == 0) 6734 if (first_time) {
6734 register_percpu_irq(IA64_PERFMON_VECTOR, &perfmon_irqaction); 6735 register_percpu_irq(IA64_PERFMON_VECTOR, &perfmon_irqaction);
6736 first_time=0;
6737 }
6735 6738
6736 ia64_setreg(_IA64_REG_CR_PMV, IA64_PERFMON_VECTOR); 6739 ia64_setreg(_IA64_REG_CR_PMV, IA64_PERFMON_VECTOR);
6737 ia64_srlz_d(); 6740 ia64_srlz_d();