|
@@ -665,18 +665,21 @@ static struct pmu cpumf_pmu = {
|
|
|
static int cpumf_pmu_notifier(struct notifier_block *self, unsigned long action,
|
|
|
void *hcpu)
|
|
|
{
|
|
|
- unsigned int cpu = (long) hcpu;
|
|
|
int flags;
|
|
|
|
|
|
switch (action & ~CPU_TASKS_FROZEN) {
|
|
|
case CPU_ONLINE:
|
|
|
case CPU_DOWN_FAILED:
|
|
|
flags = PMC_INIT;
|
|
|
- smp_call_function_single(cpu, setup_pmc_cpu, &flags, 1);
|
|
|
+ local_irq_disable();
|
|
|
+ setup_pmc_cpu(&flags);
|
|
|
+ local_irq_enable();
|
|
|
break;
|
|
|
case CPU_DOWN_PREPARE:
|
|
|
flags = PMC_RELEASE;
|
|
|
- smp_call_function_single(cpu, setup_pmc_cpu, &flags, 1);
|
|
|
+ local_irq_disable();
|
|
|
+ setup_pmc_cpu(&flags);
|
|
|
+ local_irq_enable();
|
|
|
break;
|
|
|
default:
|
|
|
break;
|