Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 339535
b: refs/heads/master
c: 2a4961b
h: refs/heads/master
i:
  339533: 97852ad
  339531: 36899ed
  339527: 1784547
  339519: 63dcdaf
v: v3
  • Loading branch information
Mark Rutland authored and Will Deacon committed Nov 9, 2012
1 parent 13c2737 commit 2ac2e61
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7279adbd9bb8ef8ff669da50f0e84c65a14022b5
refs/heads/master: 2a4961ba89ffae388a553175db51dd58ce7c39a8
13 changes: 11 additions & 2 deletions trunk/arch/arm/kernel/perf_event_cpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,6 @@ static int __devinit cpu_pmu_device_probe(struct platform_device *pdev)
cpu_pmu = pmu;
cpu_pmu->plat_device = pdev;
cpu_pmu_init(cpu_pmu);
register_cpu_notifier(&cpu_pmu_hotplug_notifier);
armpmu_register(cpu_pmu, cpu_pmu->name, PERF_TYPE_RAW);

return 0;
Expand All @@ -303,6 +302,16 @@ static struct platform_driver cpu_pmu_driver = {

static int __init register_pmu_driver(void)
{
return platform_driver_register(&cpu_pmu_driver);
int err;

err = register_cpu_notifier(&cpu_pmu_hotplug_notifier);
if (err)
return err;

err = platform_driver_register(&cpu_pmu_driver);
if (err)
unregister_cpu_notifier(&cpu_pmu_hotplug_notifier);

return err;
}
device_initcall(register_pmu_driver);

0 comments on commit 2ac2e61

Please sign in to comment.