]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
s390/mm: change default addressing mode
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Fri, 31 Aug 2012 11:35:25 +0000 (13:35 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Mon, 3 Sep 2012 11:40:25 +0000 (13:40 +0200)
Change the default addressing mode so that user space runs in primary space
and the kernel runs in home space.
In addition remove the "switch_amode" kernel parameter so all users who
already specified they want the new default behaviour will stay in the
"switched" mode instead of in the opposite they intended.
If there is a need to switch addressing modes, this can be done with the
"user_mode" kernel parameter: user_mode=home

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/kernel/setup.c

index 192a56bd06a01c74b54f34499facbc4d0982d51e..565029ce187c35d8238621f6cf05feb60ca12efa 100644 (file)
@@ -302,7 +302,7 @@ static int __init parse_vmalloc(char *arg)
 }
 early_param("vmalloc", parse_vmalloc);
 
-unsigned int addressing_mode = HOME_SPACE_MODE;
+unsigned int addressing_mode = PRIMARY_SPACE_MODE;
 EXPORT_SYMBOL_GPL(addressing_mode);
 
 static int set_amode_primary(void)
@@ -323,16 +323,6 @@ static int set_amode_primary(void)
        }
 }
 
-/*
- * Switch kernel/user addressing modes?
- */
-static int __init early_parse_switch_amode(char *p)
-{
-       addressing_mode = PRIMARY_SPACE_MODE;
-       return 0;
-}
-early_param("switch_amode", early_parse_switch_amode);
-
 static int __init early_parse_user_mode(char *p)
 {
        if (p && strcmp(p, "primary") == 0)