diff options
author | Paul Mundt <lethal@linux-sh.org> | 2010-01-25 22:58:40 -0500 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2010-01-25 22:58:40 -0500 |
commit | 9d56dd3b083a3bec56e9da35ce07baca81030b03 (patch) | |
tree | a9df9d514fbc32defc1ca8a6d7c2795f15b8a128 /arch/sh/kernel/cpu/init.c | |
parent | a077e91690fb32a1453423b2cf1df3492fd30c3a (diff) |
sh: Mass ctrl_in/outX to __raw_read/writeX conversion.
The old ctrl in/out routines are non-portable and unsuitable for
cross-platform use. While drivers/sh has already been sanitized, there
is still quite a lot of code that is not. This converts the arch/sh/ bits
over, which permits us to flag the routines as deprecated whilst still
building with -Werror for the architecture code, and to ensure that
future users are not added.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/kernel/cpu/init.c')
-rw-r--r-- | arch/sh/kernel/cpu/init.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/arch/sh/kernel/cpu/init.c b/arch/sh/kernel/cpu/init.c index 05a7d2a373b..6311b0b1789 100644 --- a/arch/sh/kernel/cpu/init.c +++ b/arch/sh/kernel/cpu/init.c | |||
@@ -61,10 +61,10 @@ onchip_setup(dsp); | |||
61 | static void __init speculative_execution_init(void) | 61 | static void __init speculative_execution_init(void) |
62 | { | 62 | { |
63 | /* Clear RABD */ | 63 | /* Clear RABD */ |
64 | ctrl_outl(ctrl_inl(CPUOPM) & ~CPUOPM_RABD, CPUOPM); | 64 | __raw_writel(__raw_readl(CPUOPM) & ~CPUOPM_RABD, CPUOPM); |
65 | 65 | ||
66 | /* Flush the update */ | 66 | /* Flush the update */ |
67 | (void)ctrl_inl(CPUOPM); | 67 | (void)__raw_readl(CPUOPM); |
68 | ctrl_barrier(); | 68 | ctrl_barrier(); |
69 | } | 69 | } |
70 | #else | 70 | #else |
@@ -111,7 +111,7 @@ static void cache_init(void) | |||
111 | unsigned long ccr, flags; | 111 | unsigned long ccr, flags; |
112 | 112 | ||
113 | jump_to_uncached(); | 113 | jump_to_uncached(); |
114 | ccr = ctrl_inl(CCR); | 114 | ccr = __raw_readl(CCR); |
115 | 115 | ||
116 | /* | 116 | /* |
117 | * At this point we don't know whether the cache is enabled or not - a | 117 | * At this point we don't know whether the cache is enabled or not - a |
@@ -155,7 +155,7 @@ static void cache_init(void) | |||
155 | for (addr = addrstart; | 155 | for (addr = addrstart; |
156 | addr < addrstart + waysize; | 156 | addr < addrstart + waysize; |
157 | addr += current_cpu_data.dcache.linesz) | 157 | addr += current_cpu_data.dcache.linesz) |
158 | ctrl_outl(0, addr); | 158 | __raw_writel(0, addr); |
159 | 159 | ||
160 | addrstart += current_cpu_data.dcache.way_incr; | 160 | addrstart += current_cpu_data.dcache.way_incr; |
161 | } while (--ways); | 161 | } while (--ways); |
@@ -188,7 +188,7 @@ static void cache_init(void) | |||
188 | 188 | ||
189 | l2_cache_init(); | 189 | l2_cache_init(); |
190 | 190 | ||
191 | ctrl_outl(flags, CCR); | 191 | __raw_writel(flags, CCR); |
192 | back_to_cached(); | 192 | back_to_cached(); |
193 | } | 193 | } |
194 | #else | 194 | #else |