mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Renaud Barbier <renaud.barbier@ge.com>
To: s.hauer@pengutronix.de
Cc: barebox@lists.infradead.org
Subject: [PATCH 2/2] Make clock shift and mask configurable based on the processor type.
Date: Thu, 29 Dec 2011 11:13:31 +0000	[thread overview]
Message-ID: <1325157211-3986-3-git-send-email-renaud.barbier@ge.com> (raw)
In-Reply-To: <1325157211-3986-1-git-send-email-renaud.barbier@ge.com>


Signed-off-by: Renaud Barbier <renaud.barbier@ge.com>
---
 arch/ppc/lib/time.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/arch/ppc/lib/time.c b/arch/ppc/lib/time.c
index 04c71df..accc548 100644
--- a/arch/ppc/lib/time.c
+++ b/arch/ppc/lib/time.c
@@ -55,9 +55,9 @@ uint64_t ppc_clocksource_read(void)
 }
 
 static struct clocksource cs = {
-	.read	= ppc_clocksource_read,
-	.mask	= CLOCKSOURCE_MASK(32),
-	.shift	= 15,
+	.read = ppc_clocksource_read,
+	.mask = CLOCKSOURCE_MASK(CONFIG_CLOCKSOURCE_MASK),
+	.shift = CONFIG_CLOCKSOURCE_SHIFT,
 };
 
 static int clocksource_init (void)
-- 
1.7.6.4


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

  parent reply	other threads:[~2011-12-29 11:13 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-29 11:13 [PATCH 0/2] PPC multiple architecture preparation Renaud Barbier
2011-12-29 11:13 ` [PATCH 1/2] Preparation stage to support multiple PPC architectures Renaud Barbier
2012-01-02 11:30   ` Sascha Hauer
2011-12-29 11:13 ` Renaud Barbier [this message]
2012-01-02 11:31   ` [PATCH 2/2] Make clock shift and mask configurable based on the processor type Sascha Hauer
2012-01-02 11:26 ` [PATCH 0/2] PPC multiple architecture preparation Sascha Hauer

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=1325157211-3986-3-git-send-email-renaud.barbier@ge.com \
    --to=renaud.barbier@ge.com \
    --cc=barebox@lists.infradead.org \
    --cc=s.hauer@pengutronix.de \
    /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