aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sparc
diff options
context:
space:
mode:
authorSam Ravnborg <sam@ravnborg.org>2012-07-26 07:02:11 -0400
committerDavid S. Miller <davem@davemloft.net>2012-07-26 19:46:15 -0400
commit32442467ed58ba7d32d02a27146650b9a4763b5d (patch)
treeb4fa9354f2f2d87c3aa4c1a1282f8e859c0fa4a1 /arch/sparc
parentd55de60564c90cfd5a55122772c9af7d34e4f665 (diff)
sparc32: define a few srmmu functions __init
They are only used during early init so lets get rid of them after init to save some RAM. Signed-off-by: Sam Ravnborg <sam@ravnborg.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc')
-rw-r--r--arch/sparc/mm/srmmu.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/sparc/mm/srmmu.c b/arch/sparc/mm/srmmu.c
index 62e3f5773303..b2ba9d162c9e 100644
--- a/arch/sparc/mm/srmmu.c
+++ b/arch/sparc/mm/srmmu.c
@@ -232,7 +232,7 @@ extern unsigned long probe_memory(void); /* in fault.c */
232 * Reserve nocache dynamically proportionally to the amount of 232 * Reserve nocache dynamically proportionally to the amount of
233 * system RAM. -- Tomas Szepe <szepe@pinerecords.com>, June 2002 233 * system RAM. -- Tomas Szepe <szepe@pinerecords.com>, June 2002
234 */ 234 */
235static void srmmu_nocache_calcsize(void) 235static void __init srmmu_nocache_calcsize(void)
236{ 236{
237 unsigned long sysmemavail = probe_memory() / 1024; 237 unsigned long sysmemavail = probe_memory() / 1024;
238 int srmmu_nocache_npages; 238 int srmmu_nocache_npages;
@@ -776,7 +776,7 @@ static unsigned long __init map_spbank(unsigned long vbase, int sp_entry)
776 return vstart; 776 return vstart;
777} 777}
778 778
779static inline void map_kernel(void) 779static void __init map_kernel(void)
780{ 780{
781 int i; 781 int i;
782 782