[PATCH 2/2] Make clock shift and mask configurable based on the processor type.

Renaud Barbier renaud.barbier at ge.com
Thu Dec 29 06:13:31 EST 2011


Signed-off-by: Renaud Barbier <renaud.barbier at 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




More information about the barebox mailing list