Skip to contentSkip to conversation

ARM: OMAP2+: free use_gptimer_clksrc variable after boot

PATCH In review Oussama Ghorbel 2 participants 2 messages Apr 14, 2014 – May 6, 2014

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

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.

---
 arch/arm/mach-omap2/timer.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/mach-omap2/timer.c +1 -1
index 74044aa..d4a6abd 100644
@@ -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
maintainer
#1 lore raw
Quoted 4 lines · Oussama Ghorbel

The variable use_gptimer_clksrc is only used by two __init functions, So we can freely free it after boot.

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
index 74044aa..d4a6abd 100644
@@ -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