Commit dda99116 authored by Yinghai Lu's avatar Yinghai Lu Committed by Ingo Molnar

x86, perf: Change two init functions to static

init_hw_perf_events() is called via early_initcall now.
x86_pmu_event_init is x86_pmu member function.

So we can change them to static.
Signed-off-by: default avatarYinghai Lu <yinghai@kernel.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Arnaldo Carvalho de Melo <acme@ghostprotocols.net>
LKML-Reference: <4D3A16F9.109@kernel.org>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent 00e99a49
...@@ -1389,7 +1389,7 @@ static void __init pmu_check_apic(void) ...@@ -1389,7 +1389,7 @@ static void __init pmu_check_apic(void)
pr_info("no hardware sampling interrupt available.\n"); pr_info("no hardware sampling interrupt available.\n");
} }
int __init init_hw_perf_events(void) static int __init init_hw_perf_events(void)
{ {
struct event_constraint *c; struct event_constraint *c;
int err; int err;
...@@ -1608,7 +1608,7 @@ static int validate_group(struct perf_event *event) ...@@ -1608,7 +1608,7 @@ static int validate_group(struct perf_event *event)
return ret; return ret;
} }
int x86_pmu_event_init(struct perf_event *event) static int x86_pmu_event_init(struct perf_event *event)
{ {
struct pmu *tmp; struct pmu *tmp;
int err; int err;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment