diff options
Diffstat (limited to 'kernel/perf_counter.c')
-rw-r--r-- | kernel/perf_counter.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/perf_counter.c b/kernel/perf_counter.c index 3aef3062ff78..52f2f526248e 100644 --- a/kernel/perf_counter.c +++ b/kernel/perf_counter.c | |||
@@ -46,7 +46,7 @@ hw_perf_counter_init(struct perf_counter *counter) | |||
46 | 46 | ||
47 | u64 __weak hw_perf_save_disable(void) { return 0; } | 47 | u64 __weak hw_perf_save_disable(void) { return 0; } |
48 | void __weak hw_perf_restore(u64 ctrl) { barrier(); } | 48 | void __weak hw_perf_restore(u64 ctrl) { barrier(); } |
49 | void __weak hw_perf_counter_setup(void) { barrier(); } | 49 | void __weak hw_perf_counter_setup(int cpu) { barrier(); } |
50 | int __weak hw_perf_group_sched_in(struct perf_counter *group_leader, | 50 | int __weak hw_perf_group_sched_in(struct perf_counter *group_leader, |
51 | struct perf_cpu_context *cpuctx, | 51 | struct perf_cpu_context *cpuctx, |
52 | struct perf_counter_context *ctx, int cpu) | 52 | struct perf_counter_context *ctx, int cpu) |
@@ -1598,7 +1598,7 @@ static void __cpuinit perf_counter_init_cpu(int cpu) | |||
1598 | cpuctx->max_pertask = perf_max_counters - perf_reserved_percpu; | 1598 | cpuctx->max_pertask = perf_max_counters - perf_reserved_percpu; |
1599 | mutex_unlock(&perf_resource_mutex); | 1599 | mutex_unlock(&perf_resource_mutex); |
1600 | 1600 | ||
1601 | hw_perf_counter_setup(); | 1601 | hw_perf_counter_setup(cpu); |
1602 | } | 1602 | } |
1603 | 1603 | ||
1604 | #ifdef CONFIG_HOTPLUG_CPU | 1604 | #ifdef CONFIG_HOTPLUG_CPU |