perf/x86/intel: Mark initialization code as such
Subsystems (2)
PATCH 1/1 perf/x86/intel: Mark initialization code as such
A few of the initialization functions are missing the __init annotation. Fix this and thereby allow ~680 additional bytes of code to be released after initialization.
Signed-off-by Mathias Krause <[email protected]>
--- arch/x86/kernel/cpu/perf_event_intel_ds.c | 2 +- arch/x86/kernel/cpu/perf_event_intel_lbr.c | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-)
arch/x86/kernel/cpu/perf_event_intel_ds.c +1 -1
@@ -1055,7 +1055,7 @@ static void intel_pmu_drain_pebs_nhm(struct pt_regs *iregs)* BTS, PEBS probe and setup */ -void intel_ds_init (void ) +void __init intel_ds_init (void ) {/* * No support for 32bit formats
arch/x86/kernel/cpu/perf_event_intel_lbr.c +4 -4
@@ -697,7 +697,7 @@ static const int snb_lbr_sel_map[PERF_SAMPLE_BRANCH_MAX] = { };/* core */ -void intel_pmu_lbr_init_core (void ) +void __init intel_pmu_lbr_init_core (void ) { x86_pmu.lbr_nr =4 ; x86_pmu.lbr_tos =MSR_LBR_TOS ;
@@ -712,7 +712,7 @@ void intel_pmu_lbr_init_core(void) }/* nehalem/westmere */ -void intel_pmu_lbr_init_nhm (void ) +void __init intel_pmu_lbr_init_nhm (void ) { x86_pmu.lbr_nr =16 ; x86_pmu.lbr_tos =MSR_LBR_TOS ;
@@ -733,7 +733,7 @@ void intel_pmu_lbr_init_nhm(void) }/* sandy bridge */ -void intel_pmu_lbr_init_snb (void ) +void __init intel_pmu_lbr_init_snb (void ) { x86_pmu.lbr_nr =16 ; x86_pmu.lbr_tos =MSR_LBR_TOS ;
@@ -753,7 +753,7 @@ void intel_pmu_lbr_init_snb(void) }/* atom */ -void intel_pmu_lbr_init_atom (void ) +void __init intel_pmu_lbr_init_atom (void ) {/* * only models starting at stepping 10 seems
Signature · 1 line
1.7.10.4
Quoted 64 lines · Mathias Krause
A few of the initialization functions are missing the
__initannotation. Fix this and thereby allow ~680 additional bytes of code to be released after initialization.Signed-off-by Mathias Krause <[email protected]>--- arch/x86/kernel/cpu/perf_event_intel_ds.c | 2 +- arch/x86/kernel/cpu/perf_event_intel_lbr.c | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-)arch/x86/kernel/cpu/perf_event_intel_ds.c +1
-1@@ -1055,7 +1055,7 @@ static void intel_pmu_drain_pebs_nhm(struct pt_regs *iregs)* BTS, PEBS probe and setup */ -void intel_ds_init (void ) +void __init intel_ds_init (void ) {/* * No support for 32bit formats arch/x86/kernel/cpu/perf_event_intel_lbr.c +4
-5@@ -697,7 +697,7 @@ static const int snb_lbr_sel_map[PERF_SAMPLE_BRANCH_MAX] = { };/* core */ -void intel_pmu_lbr_init_core (void ) +void __init intel_pmu_lbr_init_core (void ) { x86_pmu.lbr_nr =4 ; x86_pmu.lbr_tos =MSR_LBR_TOS ;@@ -712,7 +712,7 @@ void intel_pmu_lbr_init_core(void) }/* nehalem/westmere */ -void intel_pmu_lbr_init_nhm (void ) +void __init intel_pmu_lbr_init_nhm (void ) { x86_pmu.lbr_nr =16 ; x86_pmu.lbr_tos =MSR_LBR_TOS ;@@ -733,7 +733,7 @@ void intel_pmu_lbr_init_nhm(void) }/* sandy bridge */ -void intel_pmu_lbr_init_snb (void ) +void __init intel_pmu_lbr_init_snb (void ) { x86_pmu.lbr_nr =16 ; x86_pmu.lbr_tos =MSR_LBR_TOS ;@@ -753,7 +753,7 @@ void intel_pmu_lbr_init_snb(void) }/* atom */ -void intel_pmu_lbr_init_atom (void ) +void __init intel_pmu_lbr_init_atom (void ) {/* * only models starting at stepping 10 seems --
Quoted 2 lines
1.7.10.4
Ping.
tip-bot for Mathias Krause
merge botperf/x86/intel: Mark initialization code as such
Commit-ID: 066ce64c7e867e95e5fee7c5f6b852710486392a Gitweb: http://git.kernel.org/tip/066ce64c7e867e95e5fee7c5f6b852710486392a Author: Mathias Krause <[email protected]> AuthorDate: Tue, 26 Aug 2014 18:49:45 +0200 Committer: Ingo Molnar <[email protected]> CommitDate: Tue, 9 Sep 2014 06:53:06 +0200
perf/x86/intel: Mark initialization code as such
A few of the initialization functions are missing the __init annotation. Fix this and thereby allow ~680 additional bytes of code to be released after initialization.
Signed-off-by Mathias Krause <[email protected]>
Signed-off-by Peter Zijlstra (Intel) <[email protected]>
Cc Arnaldo Carvalho de Melo <[email protected]>
Signed-off-by Ingo Molnar <[email protected]>
--- arch/x86/kernel/cpu/perf_event_intel_ds.c | 2 +- arch/x86/kernel/cpu/perf_event_intel_lbr.c | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-)
arch/x86/kernel/cpu/perf_event_intel_ds.c +1 -1
@@ -1014,7 +1014,7 @@ static void intel_pmu_drain_pebs_nhm(struct pt_regs *iregs)* BTS, PEBS probe and setup */ -void intel_ds_init (void ) +void __init intel_ds_init (void ) {/* * No support for 32bit formats
arch/x86/kernel/cpu/perf_event_intel_lbr.c +4 -4
@@ -697,7 +697,7 @@ static const int snb_lbr_sel_map[PERF_SAMPLE_BRANCH_MAX] = { };/* core */ -void intel_pmu_lbr_init_core (void ) +void __init intel_pmu_lbr_init_core (void ) { x86_pmu.lbr_nr =4 ; x86_pmu.lbr_tos =MSR_LBR_TOS ;
@@ -712,7 +712,7 @@ void intel_pmu_lbr_init_core(void) }/* nehalem/westmere */ -void intel_pmu_lbr_init_nhm (void ) +void __init intel_pmu_lbr_init_nhm (void ) { x86_pmu.lbr_nr =16 ; x86_pmu.lbr_tos =MSR_LBR_TOS ;
@@ -733,7 +733,7 @@ void intel_pmu_lbr_init_nhm(void) }/* sandy bridge */ -void intel_pmu_lbr_init_snb (void ) +void __init intel_pmu_lbr_init_snb (void ) { x86_pmu.lbr_nr =16 ; x86_pmu.lbr_tos =MSR_LBR_TOS ;
@@ -753,7 +753,7 @@ void intel_pmu_lbr_init_snb(void) }/* atom */ -void intel_pmu_lbr_init_atom (void ) +void __init intel_pmu_lbr_init_atom (void ) {/* * only models starting at stepping 10 seems