diff options
author | Yinghai Lu <yinghai@kernel.org> | 2011-01-21 18:30:01 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2011-01-27 13:23:07 -0500 |
commit | dda99116969142cc41e945a1047a419b937536af (patch) | |
tree | d0a0358679407cca461f863e7f79a84051d79f3d /arch | |
parent | 00e99a49f6f3a6b5a84ba8bf8f632c9b974bea7a (diff) |
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: Yinghai 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: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/x86/kernel/cpu/perf_event.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/kernel/cpu/perf_event.c b/arch/x86/kernel/cpu/perf_event.c index 9d977a2ea693..4d98789b0664 100644 --- a/arch/x86/kernel/cpu/perf_event.c +++ b/arch/x86/kernel/cpu/perf_event.c | |||
@@ -1389,7 +1389,7 @@ static void __init pmu_check_apic(void) | |||
1389 | pr_info("no hardware sampling interrupt available.\n"); | 1389 | pr_info("no hardware sampling interrupt available.\n"); |
1390 | } | 1390 | } |
1391 | 1391 | ||
1392 | int __init init_hw_perf_events(void) | 1392 | static int __init init_hw_perf_events(void) |
1393 | { | 1393 | { |
1394 | struct event_constraint *c; | 1394 | struct event_constraint *c; |
1395 | int err; | 1395 | int err; |
@@ -1608,7 +1608,7 @@ out: | |||
1608 | return ret; | 1608 | return ret; |
1609 | } | 1609 | } |
1610 | 1610 | ||
1611 | int x86_pmu_event_init(struct perf_event *event) | 1611 | static int x86_pmu_event_init(struct perf_event *event) |
1612 | { | 1612 | { |
1613 | struct pmu *tmp; | 1613 | struct pmu *tmp; |
1614 | int err; | 1614 | int err; |