From: u.kleine-koenig@pengutronix.de (Uwe Kleine-König)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 1/4] ARM: sa1100: stop using mach/timex.h
Date: Tue, 26 Nov 2013 15:01:10 +0100 [thread overview]
Message-ID: <20131126140110.GJ28642@pengutronix.de> (raw)
In-Reply-To: <1384292466-31725-2-git-send-email-u.kleine-koenig@pengutronix.de>
Hello,
[expanded To: and Cc: to include the people scripts/get_maintainer.pl suggested]
On Tue, Nov 12, 2013 at 10:41:03PM +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 sa1100 arch code by
> substituting CLOCK_TICK_RATE by a local cpp symbol.
Who feels responsible to give (a reason for not giving) an Ack here?
Thanks
Uwe
> Signed-off-by: Uwe Kleine-K?nig <u.kleine-koenig@pengutronix.de>
> ---
> arch/arm/mach-sa1100/time.c | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/arch/arm/mach-sa1100/time.c b/arch/arm/mach-sa1100/time.c
> index 713c86c..83be0d6 100644
> --- a/arch/arm/mach-sa1100/time.c
> +++ b/arch/arm/mach-sa1100/time.c
> @@ -20,6 +20,8 @@
> #include <mach/hardware.h>
> #include <mach/irqs.h>
>
> +#define SA1100_CLOCK_FREQ 3686400
> +
> static u32 notrace sa1100_read_sched_clock(void)
> {
> return readl_relaxed(OSCR);
> @@ -128,7 +130,7 @@ void __init sa1100_timer_init(void)
>
> setup_irq(IRQ_OST0, &sa1100_timer_irq);
>
> - clocksource_mmio_init(OSCR, "oscr", CLOCK_TICK_RATE, 200, 32,
> + clocksource_mmio_init(OSCR, "oscr", SA1100_CLOCK_FREQ, 200, 32,
> clocksource_mmio_readl_up);
> clockevents_config_and_register(&ckevt_sa1100_osmr0, 3686400,
> MIN_OSCR_DELTA * 2, 0x7fffffff);
> --
> 1.8.4.2
>
>
> _______________________________________________
> linux-arm-kernel mailing list
> linux-arm-kernel at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
--
Pengutronix e.K. | Uwe Kleine-K?nig |
Industrial Linux Solutions | http://www.pengutronix.de/ |
next prev parent reply other threads:[~2013-11-26 14:01 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 [this message]
2013-11-12 21:41 ` [PATCH 2/4] ARM: netx: " Uwe Kleine-König
2013-11-26 13:23 ` Sascha Hauer
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=20131126140110.GJ28642@pengutronix.de \
--to=u.kleine-koenig@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).