linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ARM: OMAP2+: free use_gptimer_clksrc variable after boot
@ 2014-04-14 16:49 Oussama Ghorbel
  2014-05-06  0:35 ` Tony Lindgren
  0 siblings, 1 reply; 2+ messages in thread
From: Oussama Ghorbel @ 2014-04-14 16:49 UTC (permalink / raw)
  To: Tony Lindgren, Russell King, linux-arm-kernel, linux-omap
  Cc: linux-kernel, Oussama Ghorbel

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 <ghorbel@pivasoftware.com>
---
 arch/arm/mach-omap2/timer.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/mach-omap2/timer.c b/arch/arm/mach-omap2/timer.c
index 74044aa..d4a6abd 100644
--- a/arch/arm/mach-omap2/timer.c
+++ b/arch/arm/mach-omap2/timer.c
@@ -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
-- 
1.8.3.2


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] ARM: OMAP2+: free use_gptimer_clksrc variable after boot
  2014-04-14 16:49 [PATCH] ARM: OMAP2+: free use_gptimer_clksrc variable after boot Oussama Ghorbel
@ 2014-05-06  0:35 ` Tony Lindgren
  0 siblings, 0 replies; 2+ messages in thread
From: Tony Lindgren @ 2014-05-06  0:35 UTC (permalink / raw)
  To: Oussama Ghorbel; +Cc: Russell King, linux-arm-kernel, linux-omap, linux-kernel

* Oussama Ghorbel <ghorbel@pivasoftware.com> [140414 09:50]:
> 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 <ghorbel@pivasoftware.com>

Thanks applying into omap-for-v3.16/fixes-not-urgent.

Tony

> ---
>  arch/arm/mach-omap2/timer.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/arch/arm/mach-omap2/timer.c b/arch/arm/mach-omap2/timer.c
> index 74044aa..d4a6abd 100644
> --- a/arch/arm/mach-omap2/timer.c
> +++ b/arch/arm/mach-omap2/timer.c
> @@ -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
> -- 
> 1.8.3.2
> 

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-05-06  0:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-04-14 16:49 [PATCH] ARM: OMAP2+: free use_gptimer_clksrc variable after boot Oussama Ghorbel
2014-05-06  0:35 ` Tony Lindgren

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).