diff options
Diffstat (limited to 'arch/s390/kernel/vdso.c')
-rw-r--r-- | arch/s390/kernel/vdso.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/arch/s390/kernel/vdso.c b/arch/s390/kernel/vdso.c index ea5590fdca3b..9a19ca367c17 100644 --- a/arch/s390/kernel/vdso.c +++ b/arch/s390/kernel/vdso.c | |||
@@ -84,7 +84,8 @@ struct vdso_data *vdso_data = &vdso_data_store.data; | |||
84 | */ | 84 | */ |
85 | static void vdso_init_data(struct vdso_data *vd) | 85 | static void vdso_init_data(struct vdso_data *vd) |
86 | { | 86 | { |
87 | vd->ectg_available = user_mode != HOME_SPACE_MODE && test_facility(31); | 87 | vd->ectg_available = |
88 | addressing_mode != HOME_SPACE_MODE && test_facility(31); | ||
88 | } | 89 | } |
89 | 90 | ||
90 | #ifdef CONFIG_64BIT | 91 | #ifdef CONFIG_64BIT |
@@ -101,7 +102,7 @@ int vdso_alloc_per_cpu(struct _lowcore *lowcore) | |||
101 | 102 | ||
102 | lowcore->vdso_per_cpu_data = __LC_PASTE; | 103 | lowcore->vdso_per_cpu_data = __LC_PASTE; |
103 | 104 | ||
104 | if (user_mode == HOME_SPACE_MODE || !vdso_enabled) | 105 | if (addressing_mode == HOME_SPACE_MODE || !vdso_enabled) |
105 | return 0; | 106 | return 0; |
106 | 107 | ||
107 | segment_table = __get_free_pages(GFP_KERNEL, SEGMENT_ORDER); | 108 | segment_table = __get_free_pages(GFP_KERNEL, SEGMENT_ORDER); |
@@ -146,7 +147,7 @@ void vdso_free_per_cpu(struct _lowcore *lowcore) | |||
146 | unsigned long segment_table, page_table, page_frame; | 147 | unsigned long segment_table, page_table, page_frame; |
147 | u32 *psal, *aste; | 148 | u32 *psal, *aste; |
148 | 149 | ||
149 | if (user_mode == HOME_SPACE_MODE || !vdso_enabled) | 150 | if (addressing_mode == HOME_SPACE_MODE || !vdso_enabled) |
150 | return; | 151 | return; |
151 | 152 | ||
152 | psal = (u32 *)(addr_t) lowcore->paste[4]; | 153 | psal = (u32 *)(addr_t) lowcore->paste[4]; |
@@ -164,7 +165,7 @@ static void vdso_init_cr5(void) | |||
164 | { | 165 | { |
165 | unsigned long cr5; | 166 | unsigned long cr5; |
166 | 167 | ||
167 | if (user_mode == HOME_SPACE_MODE || !vdso_enabled) | 168 | if (addressing_mode == HOME_SPACE_MODE || !vdso_enabled) |
168 | return; | 169 | return; |
169 | cr5 = offsetof(struct _lowcore, paste); | 170 | cr5 = offsetof(struct _lowcore, paste); |
170 | __ctl_load(cr5, 5, 5); | 171 | __ctl_load(cr5, 5, 5); |