linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: s.hauer@pengutronix.de (Sascha Hauer)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 2/4] ARM: netx: stop using mach/timex.h
Date: Tue, 26 Nov 2013 14:23:44 +0100	[thread overview]
Message-ID: <20131126132343.GL17135@pengutronix.de> (raw)
In-Reply-To: <1384292466-31725-3-git-send-email-u.kleine-koenig@pengutronix.de>

On Tue, Nov 12, 2013 at 10:41:04PM +0100, Uwe Kleine-K?nig wrote:
> mach/timex.h is the last remaining header that is unused for multiarch
> builds but necessary for singlearch builds. To allow to get rid of it
> for singlearch builds, too, drop its usage in netx arch code by
> substituting CLOCK_TICK_RATE by a local cpp symbol.
> 
> Signed-off-by: Uwe Kleine-K?nig <u.kleine-koenig@pengutronix.de>

Acked-by: Sascha Hauer <s.hauer@pengutronix.de>

Sascha

> ---
>  arch/arm/mach-netx/time.c | 6 ++++--
>  1 file changed, 4 insertions(+), 2 deletions(-)
> 
> diff --git a/arch/arm/mach-netx/time.c b/arch/arm/mach-netx/time.c
> index 6df42e6..0e29902 100644
> --- a/arch/arm/mach-netx/time.c
> +++ b/arch/arm/mach-netx/time.c
> @@ -28,6 +28,8 @@
>  #include <asm/mach/time.h>
>  #include <mach/netx-regs.h>
>  
> +#define NETX_CLOCK_FREQ 100000000
> +
>  #define TIMER_CLOCKEVENT 0
>  #define TIMER_CLOCKSOURCE 1
>  
> @@ -137,11 +139,11 @@ void __init netx_timer_init(void)
>  			NETX_GPIO_COUNTER_CTRL(TIMER_CLOCKSOURCE));
>  
>  	clocksource_mmio_init(NETX_GPIO_COUNTER_CURRENT(TIMER_CLOCKSOURCE),
> -		"netx_timer", CLOCK_TICK_RATE, 200, 32, clocksource_mmio_readl_up);
> +		"netx_timer", NETX_CLOCK_FREQ, 200, 32, clocksource_mmio_readl_up);
>  
>  	/* with max_delta_ns >= delta2ns(0x800) the system currently runs fine.
>  	 * Adding some safety ... */
>  	netx_clockevent.cpumask = cpumask_of(0);
> -	clockevents_config_and_register(&netx_clockevent, CLOCK_TICK_RATE,
> +	clockevents_config_and_register(&netx_clockevent, NETX_CLOCK_FREQ,
>  					0xa00, 0xfffffffe);
>  }
> -- 
> 1.8.4.2
> 
> 

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

  reply	other threads:[~2013-11-26 13:23 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-12 21:41 [PATCH 0/4] Getting rid of mach/timex.h usages below arch/arm Uwe Kleine-König
2013-11-12 21:41 ` [PATCH 1/4] ARM: sa1100: stop using mach/timex.h Uwe Kleine-König
2013-11-26 14:01   ` Uwe Kleine-König
2013-11-12 21:41 ` [PATCH 2/4] ARM: netx: " Uwe Kleine-König
2013-11-26 13:23   ` Sascha Hauer [this message]
2013-11-12 21:41 ` [PATCH 3/4] ARM: mmp: " Uwe Kleine-König
2013-11-13  2:16   ` Haojian Zhuang
2013-11-12 21:41 ` [PATCH 4/4] ARM: ep93xx: " Uwe Kleine-König
2013-11-18 17:07   ` Hartley Sweeten
2013-11-26 13:29   ` [PATCH v2 " Uwe Kleine-König
2013-11-26 16:30     ` Hartley Sweeten
2013-11-26 18:48 ` [PATCH 6/4] ARM: ixp4xx: stop using <mach/timex.h> Uwe Kleine-König
2013-12-05 20:18 ` [PATCH 0/12] Getting rid of mach/timex.h usages below arch/arm Uwe Kleine-König
2013-12-05 20:21   ` [PATCH 12/12] ARM: drop <mach/timex.h> for !ARCH_MULTIPLATFORM, too Uwe Kleine-König

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20131126132343.GL17135@pengutronix.de \
    --to=s.hauer@pengutronix.de \
    --cc=linux-arm-kernel@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).