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>
This commit is contained in:
@@ -158,7 +158,7 @@ static inline void enable_mmu(void)
|
||||
unsigned int cpu = smp_processor_id();
|
||||
|
||||
/* Enable MMU */
|
||||
ctrl_outl(MMU_CONTROL_INIT, MMUCR);
|
||||
__raw_writel(MMU_CONTROL_INIT, MMUCR);
|
||||
ctrl_barrier();
|
||||
|
||||
if (asid_cache(cpu) == NO_CONTEXT)
|
||||
@@ -171,9 +171,9 @@ static inline void disable_mmu(void)
|
||||
{
|
||||
unsigned long cr;
|
||||
|
||||
cr = ctrl_inl(MMUCR);
|
||||
cr = __raw_readl(MMUCR);
|
||||
cr &= ~MMU_CONTROL_INIT;
|
||||
ctrl_outl(cr, MMUCR);
|
||||
__raw_writel(cr, MMUCR);
|
||||
|
||||
ctrl_barrier();
|
||||
}
|
||||
|
Reference in New Issue
Block a user