summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2010-11-29 15:14:04 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2010-11-29 21:55:25 +0100
commitf69626c632f929adba821474e8885b642fa2a438 (patch)
tree7880b67cb184963b02f06508abadb5001e53e273
parentc448d8c6595a6a2a4725f71b27b2ad41875a0ef6 (diff)
downloadbarebox-f69626c632f929adba821474e8885b642fa2a438.tar.gz
barebox-f69626c632f929adba821474e8885b642fa2a438.tar.xz
clocksource: switch mask to CLOCKSOURCE_MASK
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r--arch/arm/mach-at91/at91sam926x_time.c2
-rw-r--r--arch/arm/mach-ep93xx/clocksource.c2
-rw-r--r--arch/arm/mach-imx/clocksource.c2
-rw-r--r--arch/arm/mach-netx/clocksource.c2
-rw-r--r--arch/arm/mach-nomadik/timer.c2
-rw-r--r--arch/arm/mach-omap/s32k_clksource.c2
-rw-r--r--arch/arm/mach-s3c24xx/generic.c2
-rw-r--r--arch/arm/mach-stm/clocksource-imx23.c2
-rw-r--r--arch/blackfin/lib/clock.c2
-rw-r--r--arch/ppc/lib/time.c2
-rw-r--r--arch/sandbox/board/clock.c2
-rw-r--r--arch/x86/mach-i386/pit_timer.c2
12 files changed, 12 insertions, 12 deletions
diff --git a/arch/arm/mach-at91/at91sam926x_time.c b/arch/arm/mach-at91/at91sam926x_time.c
index c1b42f92c9..7a1d6dd2f4 100644
--- a/arch/arm/mach-at91/at91sam926x_time.c
+++ b/arch/arm/mach-at91/at91sam926x_time.c
@@ -46,7 +46,7 @@ uint64_t at91sam9_clocksource_read(void)
static struct clocksource cs = {
.read = at91sam9_clocksource_read,
- .mask = 0xffffffff,
+ .mask = CLOCKSOURCE_MASK(32),
.shift = 10,
};
diff --git a/arch/arm/mach-ep93xx/clocksource.c b/arch/arm/mach-ep93xx/clocksource.c
index a1e315dca6..b500948968 100644
--- a/arch/arm/mach-ep93xx/clocksource.c
+++ b/arch/arm/mach-ep93xx/clocksource.c
@@ -41,7 +41,7 @@ static uint64_t ep93xx_clocksource_read(void)
static struct clocksource cs = {
.read = ep93xx_clocksource_read,
- .mask = 0xffffffff,
+ .mask = CLOCKSOURCE_MASK(32),
.shift = 10,
};
diff --git a/arch/arm/mach-imx/clocksource.c b/arch/arm/mach-imx/clocksource.c
index 5b1bad52f8..5397da03d7 100644
--- a/arch/arm/mach-imx/clocksource.c
+++ b/arch/arm/mach-imx/clocksource.c
@@ -47,7 +47,7 @@ static uint64_t imx_clocksource_read(void)
static struct clocksource cs = {
.read = imx_clocksource_read,
- .mask = 0xffffffff,
+ .mask = CLOCKSOURCE_MASK(32),
.shift = 10,
};
diff --git a/arch/arm/mach-netx/clocksource.c b/arch/arm/mach-netx/clocksource.c
index 818709df47..853eab71fa 100644
--- a/arch/arm/mach-netx/clocksource.c
+++ b/arch/arm/mach-netx/clocksource.c
@@ -34,7 +34,7 @@ uint64_t netx_clocksource_read(void)
static struct clocksource cs = {
.read = netx_clocksource_read,
- .mask = 0xffffffff,
+ .mask = CLOCKSOURCE_MASK(32),
.shift = 10,
};
diff --git a/arch/arm/mach-nomadik/timer.c b/arch/arm/mach-nomadik/timer.c
index 12e56f05e3..7de1f391a6 100644
--- a/arch/arm/mach-nomadik/timer.c
+++ b/arch/arm/mach-nomadik/timer.c
@@ -35,7 +35,7 @@ static uint64_t nmdk_read_timer(void)
static struct clocksource nmdk_clksrc = {
.read = nmdk_read_timer,
.shift = 20,
- .mask = 0xffffffff,
+ .mask = CLOCKSOURCE_MASK(32),
};
static void nmdk_timer_reset(void)
diff --git a/arch/arm/mach-omap/s32k_clksource.c b/arch/arm/mach-omap/s32k_clksource.c
index 353670c583..094b76d6b7 100644
--- a/arch/arm/mach-omap/s32k_clksource.c
+++ b/arch/arm/mach-omap/s32k_clksource.c
@@ -56,7 +56,7 @@ static uint64_t s32k_clocksource_read(void)
/* A bit obvious isn't it? */
static struct clocksource s32k_cs = {
.read = s32k_clocksource_read,
- .mask = 0xffffffff,
+ .mask = CLOCKSOURCE_MASK(32),
.shift = 10,
};
diff --git a/arch/arm/mach-s3c24xx/generic.c b/arch/arm/mach-s3c24xx/generic.c
index 46b5c50d5b..c04e0b653e 100644
--- a/arch/arm/mach-s3c24xx/generic.c
+++ b/arch/arm/mach-s3c24xx/generic.c
@@ -196,7 +196,7 @@ static uint64_t s3c24xx_clocksource_read(void)
static struct clocksource cs = {
.read = s3c24xx_clocksource_read,
- .mask = 0x0000ffff,
+ .mask = CLOCKSOURCE_MASK(16),
.shift = 10,
};
diff --git a/arch/arm/mach-stm/clocksource-imx23.c b/arch/arm/mach-stm/clocksource-imx23.c
index 7c0268c1fb..f7c94c1d75 100644
--- a/arch/arm/mach-stm/clocksource-imx23.c
+++ b/arch/arm/mach-stm/clocksource-imx23.c
@@ -48,7 +48,7 @@ static uint64_t imx23_clocksource_read(void)
static struct clocksource cs = {
.read = imx23_clocksource_read,
- .mask = 0x0000ffff,
+ .mask = CLOCKSOURCE_MASK(16),
.shift = 10,
};
diff --git a/arch/blackfin/lib/clock.c b/arch/blackfin/lib/clock.c
index dc2ab5f555..7a5673f2ce 100644
--- a/arch/blackfin/lib/clock.c
+++ b/arch/blackfin/lib/clock.c
@@ -55,7 +55,7 @@ static uint64_t blackfin_clocksource_read(void)
static struct clocksource cs = {
.read = blackfin_clocksource_read,
- .mask = 0xffffffff,
+ .mask = CLOCKSOURCE_MASK(32),
.shift = 10,
};
diff --git a/arch/ppc/lib/time.c b/arch/ppc/lib/time.c
index ee6cbdf676..04c71dfcc6 100644
--- a/arch/ppc/lib/time.c
+++ b/arch/ppc/lib/time.c
@@ -56,7 +56,7 @@ uint64_t ppc_clocksource_read(void)
static struct clocksource cs = {
.read = ppc_clocksource_read,
- .mask = 0xffffffff,
+ .mask = CLOCKSOURCE_MASK(32),
.shift = 15,
};
diff --git a/arch/sandbox/board/clock.c b/arch/sandbox/board/clock.c
index b15086432c..3afbc8d681 100644
--- a/arch/sandbox/board/clock.c
+++ b/arch/sandbox/board/clock.c
@@ -32,7 +32,7 @@ static uint64_t linux_clocksource_read(void)
static struct clocksource cs = {
.read = linux_clocksource_read,
- .mask = 0xffffffff,
+ .mask = CLOCKSOURCE_MASK(32),
.shift = 10,
};
diff --git a/arch/x86/mach-i386/pit_timer.c b/arch/x86/mach-i386/pit_timer.c
index b9f805e61f..ec97cee49b 100644
--- a/arch/x86/mach-i386/pit_timer.c
+++ b/arch/x86/mach-i386/pit_timer.c
@@ -56,7 +56,7 @@ static uint64_t pit_clocksource_read(void)
static struct clocksource cs = {
.read = pit_clocksource_read,
- .mask = 0x0000ffff,
+ .mask = CLOCKSOURCE_MASK(16),
.shift = 10,
};