ARM: OMAP2+: free use_gptimer_clksrc variable after boot
Subsystems (3)
PATCH 1/1 ARM: OMAP2+: free use_gptimer_clksrc variable after boot
The variable use_gptimer_clksrc is only used by two __init functions, So we can freely free it after boot.
Signed-off-by Oussama Ghorbel <[email protected]>
--- arch/arm/mach-omap2/timer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/mach-omap2/timer.c +1 -1
@@ -361,7 +361,7 @@ static void __init omap2_gp_clockevent_init(int gptimer_id,/* Clocksource code */ static struct omap_dm_timer clksrc; -static bool use_gptimer_clksrc; +static bool use_gptimer_clksrc__initdata ;/* * clocksource
Signature · 1 line
1.8.3.2
Tony Lindgren
maintainerQuoted 4 lines · Oussama Ghorbel
The variable
use_gptimer_clksrcis only used by two__initfunctions, So we can freely free it after boot.Signed-off-by Oussama Ghorbel <[email protected]>
Thanks applying into omap-for-v3.16/fixes-not-urgent.
Tony
Quoted 20 lines
--- arch/arm/mach-omap2/timer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)arch/arm/mach-omap2/timer.c +1
-1@@ -361,7 +361,7 @@ static void __init omap2_gp_clockevent_init(int gptimer_id,/* Clocksource code */ static struct omap_dm_timer clksrc; -static bool use_gptimer_clksrc; +static bool use_gptimer_clksrc__initdata ;/* * clocksource Signature · 1 line
1.8.3.2