Skip to content

Commit

Permalink
[S390] kernel: Disable switch_amode by default
Browse files Browse the repository at this point in the history
Disable switch_amode by default because pagetable walk on pre z9
hardware has negative performance impact.

Signed-off-by: Gerald Schaefer <gerald.schaefer@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
  • Loading branch information
Gerald Schaefer authored and Martin Schwidefsky committed Mar 26, 2009
1 parent 8283cb4 commit 4b2a8b6
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions arch/s390/kernel/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -301,11 +301,7 @@ static int __init early_parse_mem(char *p)
early_param("mem", early_parse_mem);

#ifdef CONFIG_S390_SWITCH_AMODE
#ifdef CONFIG_PGSTE
unsigned int switch_amode = 1;
#else
unsigned int switch_amode = 0;
#endif
EXPORT_SYMBOL_GPL(switch_amode);

static int set_amode_and_uaccess(unsigned long user_amode,
Expand Down

0 comments on commit 4b2a8b6

Please sign in to comment.