summaryrefslogtreecommitdiffstats
path: root/arch/sh/mm/init.c
diff options
context:
space:
mode:
authorPaul Mundt <lethal@linux-sh.org>2010-01-20 16:40:48 +0900
committerPaul Mundt <lethal@linux-sh.org>2010-01-20 16:40:48 +0900
commit2efa53b269ec1e9289a108e1506f53f6f1de440b (patch)
treea5825e18be1044b2472cba5776e1ef47377f9834 /arch/sh/mm/init.c
parent5f240718b475dcddee86b138b624f24c681dbb29 (diff)
downloadop-kernel-dev-2efa53b269ec1e9289a108e1506f53f6f1de440b.zip
op-kernel-dev-2efa53b269ec1e9289a108e1506f53f6f1de440b.tar.gz
sh: Make 29/32-bit mode check helper generally available.
Presently __in_29bit_mode() is only defined for the PMB case, but it's also easily derived from the CONFIG_29BIT and CONFIG_32BIT && CONFIG_PMB=n cases. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/mm/init.c')
-rw-r--r--arch/sh/mm/init.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/arch/sh/mm/init.c b/arch/sh/mm/init.c
index 32ebd15..491d9d5 100644
--- a/arch/sh/mm/init.c
+++ b/arch/sh/mm/init.c
@@ -338,10 +338,3 @@ EXPORT_SYMBOL_GPL(memory_add_physaddr_to_nid);
#endif
#endif /* CONFIG_MEMORY_HOTPLUG */
-
-#ifdef CONFIG_PMB
-int __in_29bit_mode(void)
-{
- return !(ctrl_inl(PMB_PASCR) & PASCR_SE);
-}
-#endif /* CONFIG_PMB */
OpenPOWER on IntegriCloud