aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHeiko Carstens <heiko.carstens@de.ibm.com>2015-12-31 04:29:00 -0500
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2016-01-11 06:27:15 -0500
commitc667aeacc16e0de9e205faa93f57121d6f691973 (patch)
treedcba3eec1ed25581dd8a6c30235a3ce69336f3aa
parent423d5b364c108c00d98e3da9f72d598e8f2ef948 (diff)
s390: rename struct _lowcore to struct lowcore
Finally get rid of the leading underscore. I tried this already two or three years ago, however Michael Holzheu objected since this would break the crash utility (again). However Michael integrated support for the new name into the crash utility back then, so it doesn't break if the name will be changed now. So finally get rid of the ever confusing leading underscore. Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
-rw-r--r--arch/s390/include/asm/lowcore.h6
-rw-r--r--arch/s390/include/asm/processor.h2
-rw-r--r--arch/s390/include/asm/vdso.h4
-rw-r--r--arch/s390/kernel/asm-offsets.c174
-rw-r--r--arch/s390/kernel/crash_dump.c4
-rw-r--r--arch/s390/kernel/ipl.c4
-rw-r--r--arch/s390/kernel/setup.c6
-rw-r--r--arch/s390/kernel/smp.c16
-rw-r--r--arch/s390/kernel/vdso.c6
-rw-r--r--arch/s390/kvm/interrupt.c4
-rw-r--r--arch/s390/kvm/priv.c2
-rw-r--r--arch/s390/mm/maccess.c4
12 files changed, 116 insertions, 116 deletions
diff --git a/arch/s390/include/asm/lowcore.h b/arch/s390/include/asm/lowcore.h
index 5dbbf199ba2e..d79ba7cf75b0 100644
--- a/arch/s390/include/asm/lowcore.h
+++ b/arch/s390/include/asm/lowcore.h
@@ -16,7 +16,7 @@
16#define LC_ORDER 1 16#define LC_ORDER 1
17#define LC_PAGES 2 17#define LC_PAGES 2
18 18
19struct _lowcore { 19struct lowcore {
20 __u8 pad_0x0000[0x0014-0x0000]; /* 0x0000 */ 20 __u8 pad_0x0000[0x0014-0x0000]; /* 0x0000 */
21 __u32 ipl_parmblock_ptr; /* 0x0014 */ 21 __u32 ipl_parmblock_ptr; /* 0x0014 */
22 __u8 pad_0x0018[0x0080-0x0018]; /* 0x0018 */ 22 __u8 pad_0x0018[0x0080-0x0018]; /* 0x0018 */
@@ -183,9 +183,9 @@ struct _lowcore {
183 __u8 vector_save_area[1024]; /* 0x1c00 */ 183 __u8 vector_save_area[1024]; /* 0x1c00 */
184} __packed; 184} __packed;
185 185
186#define S390_lowcore (*((struct _lowcore *) 0)) 186#define S390_lowcore (*((struct lowcore *) 0))
187 187
188extern struct _lowcore *lowcore_ptr[]; 188extern struct lowcore *lowcore_ptr[];
189 189
190static inline void set_prefix(__u32 address) 190static inline void set_prefix(__u32 address)
191{ 191{
diff --git a/arch/s390/include/asm/processor.h b/arch/s390/include/asm/processor.h
index 5592c94ebe31..f16debf6a612 100644
--- a/arch/s390/include/asm/processor.h
+++ b/arch/s390/include/asm/processor.h
@@ -60,7 +60,7 @@ static inline int test_cpu_flag(int flag)
60 */ 60 */
61static inline int test_cpu_flag_of(int flag, int cpu) 61static inline int test_cpu_flag_of(int flag, int cpu)
62{ 62{
63 struct _lowcore *lc = lowcore_ptr[cpu]; 63 struct lowcore *lc = lowcore_ptr[cpu];
64 return !!(lc->cpu_flags & (1UL << flag)); 64 return !!(lc->cpu_flags & (1UL << flag));
65} 65}
66 66
diff --git a/arch/s390/include/asm/vdso.h b/arch/s390/include/asm/vdso.h
index 787acd4f9668..f9b02d300d60 100644
--- a/arch/s390/include/asm/vdso.h
+++ b/arch/s390/include/asm/vdso.h
@@ -42,8 +42,8 @@ struct vdso_per_cpu_data {
42 42
43extern struct vdso_data *vdso_data; 43extern struct vdso_data *vdso_data;
44 44
45int vdso_alloc_per_cpu(struct _lowcore *lowcore); 45int vdso_alloc_per_cpu(struct lowcore *lowcore);
46void vdso_free_per_cpu(struct _lowcore *lowcore); 46void vdso_free_per_cpu(struct lowcore *lowcore);
47 47
48#endif /* __ASSEMBLY__ */ 48#endif /* __ASSEMBLY__ */
49#endif /* __S390_VDSO_H__ */ 49#endif /* __S390_VDSO_H__ */
diff --git a/arch/s390/kernel/asm-offsets.c b/arch/s390/kernel/asm-offsets.c
index d8d18f8d8b77..d5916ef9c619 100644
--- a/arch/s390/kernel/asm-offsets.c
+++ b/arch/s390/kernel/asm-offsets.c
@@ -97,96 +97,96 @@ int main(void)
97 OFFSET(__TIMER_IDLE_EXIT, s390_idle_data, timer_idle_exit); 97 OFFSET(__TIMER_IDLE_EXIT, s390_idle_data, timer_idle_exit);
98 BLANK(); 98 BLANK();
99 /* hardware defined lowcore locations 0x000 - 0x1ff */ 99 /* hardware defined lowcore locations 0x000 - 0x1ff */
100 OFFSET(__LC_EXT_PARAMS, _lowcore, ext_params); 100 OFFSET(__LC_EXT_PARAMS, lowcore, ext_params);
101 OFFSET(__LC_EXT_CPU_ADDR, _lowcore, ext_cpu_addr); 101 OFFSET(__LC_EXT_CPU_ADDR, lowcore, ext_cpu_addr);
102 OFFSET(__LC_EXT_INT_CODE, _lowcore, ext_int_code); 102 OFFSET(__LC_EXT_INT_CODE, lowcore, ext_int_code);
103 OFFSET(__LC_SVC_ILC, _lowcore, svc_ilc); 103 OFFSET(__LC_SVC_ILC, lowcore, svc_ilc);
104 OFFSET(__LC_SVC_INT_CODE, _lowcore, svc_code); 104 OFFSET(__LC_SVC_INT_CODE, lowcore, svc_code);
105 OFFSET(__LC_PGM_ILC, _lowcore, pgm_ilc); 105 OFFSET(__LC_PGM_ILC, lowcore, pgm_ilc);
106 OFFSET(__LC_PGM_INT_CODE, _lowcore, pgm_code); 106 OFFSET(__LC_PGM_INT_CODE, lowcore, pgm_code);
107 OFFSET(__LC_DATA_EXC_CODE, _lowcore, data_exc_code); 107 OFFSET(__LC_DATA_EXC_CODE, lowcore, data_exc_code);
108 OFFSET(__LC_MON_CLASS_NR, _lowcore, mon_class_num); 108 OFFSET(__LC_MON_CLASS_NR, lowcore, mon_class_num);
109 OFFSET(__LC_PER_CODE, _lowcore, per_code); 109 OFFSET(__LC_PER_CODE, lowcore, per_code);
110 OFFSET(__LC_PER_ATMID, _lowcore, per_atmid); 110 OFFSET(__LC_PER_ATMID, lowcore, per_atmid);
111 OFFSET(__LC_PER_ADDRESS, _lowcore, per_address); 111 OFFSET(__LC_PER_ADDRESS, lowcore, per_address);
112 OFFSET(__LC_EXC_ACCESS_ID, _lowcore, exc_access_id); 112 OFFSET(__LC_EXC_ACCESS_ID, lowcore, exc_access_id);
113 OFFSET(__LC_PER_ACCESS_ID, _lowcore, per_access_id); 113 OFFSET(__LC_PER_ACCESS_ID, lowcore, per_access_id);
114 OFFSET(__LC_OP_ACCESS_ID, _lowcore, op_access_id); 114 OFFSET(__LC_OP_ACCESS_ID, lowcore, op_access_id);
115 OFFSET(__LC_AR_MODE_ID, _lowcore, ar_mode_id); 115 OFFSET(__LC_AR_MODE_ID, lowcore, ar_mode_id);
116 OFFSET(__LC_TRANS_EXC_CODE, _lowcore, trans_exc_code); 116 OFFSET(__LC_TRANS_EXC_CODE, lowcore, trans_exc_code);
117 OFFSET(__LC_MON_CODE, _lowcore, monitor_code); 117 OFFSET(__LC_MON_CODE, lowcore, monitor_code);
118 OFFSET(__LC_SUBCHANNEL_ID, _lowcore, subchannel_id); 118 OFFSET(__LC_SUBCHANNEL_ID, lowcore, subchannel_id);
119 OFFSET(__LC_SUBCHANNEL_NR, _lowcore, subchannel_nr); 119 OFFSET(__LC_SUBCHANNEL_NR, lowcore, subchannel_nr);
120 OFFSET(__LC_IO_INT_PARM, _lowcore, io_int_parm); 120 OFFSET(__LC_IO_INT_PARM, lowcore, io_int_parm);
121 OFFSET(__LC_IO_INT_WORD, _lowcore, io_int_word); 121 OFFSET(__LC_IO_INT_WORD, lowcore, io_int_word);
122 OFFSET(__LC_STFL_FAC_LIST, _lowcore, stfl_fac_list); 122 OFFSET(__LC_STFL_FAC_LIST, lowcore, stfl_fac_list);
123 OFFSET(__LC_STFLE_FAC_LIST, _lowcore, stfle_fac_list); 123 OFFSET(__LC_STFLE_FAC_LIST, lowcore, stfle_fac_list);
124 OFFSET(__LC_MCCK_CODE, _lowcore, mcck_interruption_code); 124 OFFSET(__LC_MCCK_CODE, lowcore, mcck_interruption_code);
125 OFFSET(__LC_MCCK_FAIL_STOR_ADDR, _lowcore, failing_storage_address); 125 OFFSET(__LC_MCCK_FAIL_STOR_ADDR, lowcore, failing_storage_address);
126 OFFSET(__LC_LAST_BREAK, _lowcore, breaking_event_addr); 126 OFFSET(__LC_LAST_BREAK, lowcore, breaking_event_addr);
127 OFFSET(__LC_RST_OLD_PSW, _lowcore, restart_old_psw); 127 OFFSET(__LC_RST_OLD_PSW, lowcore, restart_old_psw);
128 OFFSET(__LC_EXT_OLD_PSW, _lowcore, external_old_psw); 128 OFFSET(__LC_EXT_OLD_PSW, lowcore, external_old_psw);
129 OFFSET(__LC_SVC_OLD_PSW, _lowcore, svc_old_psw); 129 OFFSET(__LC_SVC_OLD_PSW, lowcore, svc_old_psw);
130 OFFSET(__LC_PGM_OLD_PSW, _lowcore, program_old_psw); 130 OFFSET(__LC_PGM_OLD_PSW, lowcore, program_old_psw);
131 OFFSET(__LC_MCK_OLD_PSW, _lowcore, mcck_old_psw); 131 OFFSET(__LC_MCK_OLD_PSW, lowcore, mcck_old_psw);
132 OFFSET(__LC_IO_OLD_PSW, _lowcore, io_old_psw); 132 OFFSET(__LC_IO_OLD_PSW, lowcore, io_old_psw);
133 OFFSET(__LC_RST_NEW_PSW, _lowcore, restart_psw); 133 OFFSET(__LC_RST_NEW_PSW, lowcore, restart_psw);
134 OFFSET(__LC_EXT_NEW_PSW, _lowcore, external_new_psw); 134 OFFSET(__LC_EXT_NEW_PSW, lowcore, external_new_psw);
135 OFFSET(__LC_SVC_NEW_PSW, _lowcore, svc_new_psw); 135 OFFSET(__LC_SVC_NEW_PSW, lowcore, svc_new_psw);
136 OFFSET(__LC_PGM_NEW_PSW, _lowcore, program_new_psw); 136 OFFSET(__LC_PGM_NEW_PSW, lowcore, program_new_psw);
137 OFFSET(__LC_MCK_NEW_PSW, _lowcore, mcck_new_psw); 137 OFFSET(__LC_MCK_NEW_PSW, lowcore, mcck_new_psw);
138 OFFSET(__LC_IO_NEW_PSW, _lowcore, io_new_psw); 138 OFFSET(__LC_IO_NEW_PSW, lowcore, io_new_psw);
139 /* software defined lowcore locations 0x200 - 0xdff*/ 139 /* software defined lowcore locations 0x200 - 0xdff*/
140 OFFSET(__LC_SAVE_AREA_SYNC, _lowcore, save_area_sync); 140 OFFSET(__LC_SAVE_AREA_SYNC, lowcore, save_area_sync);
141 OFFSET(__LC_SAVE_AREA_ASYNC, _lowcore, save_area_async); 141 OFFSET(__LC_SAVE_AREA_ASYNC, lowcore, save_area_async);
142 OFFSET(__LC_SAVE_AREA_RESTART, _lowcore, save_area_restart); 142 OFFSET(__LC_SAVE_AREA_RESTART, lowcore, save_area_restart);
143 OFFSET(__LC_CPU_FLAGS, _lowcore, cpu_flags); 143 OFFSET(__LC_CPU_FLAGS, lowcore, cpu_flags);
144 OFFSET(__LC_RETURN_PSW, _lowcore, return_psw); 144 OFFSET(__LC_RETURN_PSW, lowcore, return_psw);
145 OFFSET(__LC_RETURN_MCCK_PSW, _lowcore, return_mcck_psw); 145 OFFSET(__LC_RETURN_MCCK_PSW, lowcore, return_mcck_psw);
146 OFFSET(__LC_SYNC_ENTER_TIMER, _lowcore, sync_enter_timer); 146 OFFSET(__LC_SYNC_ENTER_TIMER, lowcore, sync_enter_timer);
147 OFFSET(__LC_ASYNC_ENTER_TIMER, _lowcore, async_enter_timer); 147 OFFSET(__LC_ASYNC_ENTER_TIMER, lowcore, async_enter_timer);
148 OFFSET(__LC_MCCK_ENTER_TIMER, _lowcore, mcck_enter_timer); 148 OFFSET(__LC_MCCK_ENTER_TIMER, lowcore, mcck_enter_timer);
149 OFFSET(__LC_EXIT_TIMER, _lowcore, exit_timer); 149 OFFSET(__LC_EXIT_TIMER, lowcore, exit_timer);
150 OFFSET(__LC_USER_TIMER, _lowcore, user_timer); 150 OFFSET(__LC_USER_TIMER, lowcore, user_timer);
151 OFFSET(__LC_SYSTEM_TIMER, _lowcore, system_timer); 151 OFFSET(__LC_SYSTEM_TIMER, lowcore, system_timer);
152 OFFSET(__LC_STEAL_TIMER, _lowcore, steal_timer); 152 OFFSET(__LC_STEAL_TIMER, lowcore, steal_timer);
153 OFFSET(__LC_LAST_UPDATE_TIMER, _lowcore, last_update_timer); 153 OFFSET(__LC_LAST_UPDATE_TIMER, lowcore, last_update_timer);
154 OFFSET(__LC_LAST_UPDATE_CLOCK, _lowcore, last_update_clock); 154 OFFSET(__LC_LAST_UPDATE_CLOCK, lowcore, last_update_clock);
155 OFFSET(__LC_INT_CLOCK, _lowcore, int_clock); 155 OFFSET(__LC_INT_CLOCK, lowcore, int_clock);
156 OFFSET(__LC_MCCK_CLOCK, _lowcore, mcck_clock); 156 OFFSET(__LC_MCCK_CLOCK, lowcore, mcck_clock);
157 OFFSET(__LC_CURRENT, _lowcore, current_task); 157 OFFSET(__LC_CURRENT, lowcore, current_task);
158 OFFSET(__LC_THREAD_INFO, _lowcore, thread_info); 158 OFFSET(__LC_THREAD_INFO, lowcore, thread_info);
159 OFFSET(__LC_KERNEL_STACK, _lowcore, kernel_stack); 159 OFFSET(__LC_KERNEL_STACK, lowcore, kernel_stack);
160 OFFSET(__LC_ASYNC_STACK, _lowcore, async_stack); 160 OFFSET(__LC_ASYNC_STACK, lowcore, async_stack);
161 OFFSET(__LC_PANIC_STACK, _lowcore, panic_stack); 161 OFFSET(__LC_PANIC_STACK, lowcore, panic_stack);
162 OFFSET(__LC_RESTART_STACK, _lowcore, restart_stack); 162 OFFSET(__LC_RESTART_STACK, lowcore, restart_stack);
163 OFFSET(__LC_RESTART_FN, _lowcore, restart_fn); 163 OFFSET(__LC_RESTART_FN, lowcore, restart_fn);
164 OFFSET(__LC_RESTART_DATA, _lowcore, restart_data); 164 OFFSET(__LC_RESTART_DATA, lowcore, restart_data);
165 OFFSET(__LC_RESTART_SOURCE, _lowcore, restart_source); 165 OFFSET(__LC_RESTART_SOURCE, lowcore, restart_source);
166 OFFSET(__LC_USER_ASCE, _lowcore, user_asce); 166 OFFSET(__LC_USER_ASCE, lowcore, user_asce);
167 OFFSET(__LC_LPP, _lowcore, lpp); 167 OFFSET(__LC_LPP, lowcore, lpp);
168 OFFSET(__LC_CURRENT_PID, _lowcore, current_pid); 168 OFFSET(__LC_CURRENT_PID, lowcore, current_pid);
169 OFFSET(__LC_PERCPU_OFFSET, _lowcore, percpu_offset); 169 OFFSET(__LC_PERCPU_OFFSET, lowcore, percpu_offset);
170 OFFSET(__LC_VDSO_PER_CPU, _lowcore, vdso_per_cpu_data); 170 OFFSET(__LC_VDSO_PER_CPU, lowcore, vdso_per_cpu_data);
171 OFFSET(__LC_MACHINE_FLAGS, _lowcore, machine_flags); 171 OFFSET(__LC_MACHINE_FLAGS, lowcore, machine_flags);
172 OFFSET(__LC_GMAP, _lowcore, gmap); 172 OFFSET(__LC_GMAP, lowcore, gmap);
173 OFFSET(__LC_PASTE, _lowcore, paste); 173 OFFSET(__LC_PASTE, lowcore, paste);
174 /* software defined ABI-relevant lowcore locations 0xe00 - 0xe20 */ 174 /* software defined ABI-relevant lowcore locations 0xe00 - 0xe20 */
175 OFFSET(__LC_DUMP_REIPL, _lowcore, ipib); 175 OFFSET(__LC_DUMP_REIPL, lowcore, ipib);
176 /* hardware defined lowcore locations 0x1000 - 0x18ff */ 176 /* hardware defined lowcore locations 0x1000 - 0x18ff */
177 OFFSET(__LC_VX_SAVE_AREA_ADDR, _lowcore, vector_save_area_addr); 177 OFFSET(__LC_VX_SAVE_AREA_ADDR, lowcore, vector_save_area_addr);
178 OFFSET(__LC_EXT_PARAMS2, _lowcore, ext_params2); 178 OFFSET(__LC_EXT_PARAMS2, lowcore, ext_params2);
179 OFFSET(__LC_FPREGS_SAVE_AREA, _lowcore, floating_pt_save_area); 179 OFFSET(__LC_FPREGS_SAVE_AREA, lowcore, floating_pt_save_area);
180 OFFSET(__LC_GPREGS_SAVE_AREA, _lowcore, gpregs_save_area); 180 OFFSET(__LC_GPREGS_SAVE_AREA, lowcore, gpregs_save_area);
181 OFFSET(__LC_PSW_SAVE_AREA, _lowcore, psw_save_area); 181 OFFSET(__LC_PSW_SAVE_AREA, lowcore, psw_save_area);
182 OFFSET(__LC_PREFIX_SAVE_AREA, _lowcore, prefixreg_save_area); 182 OFFSET(__LC_PREFIX_SAVE_AREA, lowcore, prefixreg_save_area);
183 OFFSET(__LC_FP_CREG_SAVE_AREA, _lowcore, fpt_creg_save_area); 183 OFFSET(__LC_FP_CREG_SAVE_AREA, lowcore, fpt_creg_save_area);
184 OFFSET(__LC_TOD_PROGREG_SAVE_AREA, _lowcore, tod_progreg_save_area); 184 OFFSET(__LC_TOD_PROGREG_SAVE_AREA, lowcore, tod_progreg_save_area);
185 OFFSET(__LC_CPU_TIMER_SAVE_AREA, _lowcore, cpu_timer_save_area); 185 OFFSET(__LC_CPU_TIMER_SAVE_AREA, lowcore, cpu_timer_save_area);
186 OFFSET(__LC_CLOCK_COMP_SAVE_AREA, _lowcore, clock_comp_save_area); 186 OFFSET(__LC_CLOCK_COMP_SAVE_AREA, lowcore, clock_comp_save_area);
187 OFFSET(__LC_AREGS_SAVE_AREA, _lowcore, access_regs_save_area); 187 OFFSET(__LC_AREGS_SAVE_AREA, lowcore, access_regs_save_area);
188 OFFSET(__LC_CREGS_SAVE_AREA, _lowcore, cregs_save_area); 188 OFFSET(__LC_CREGS_SAVE_AREA, lowcore, cregs_save_area);
189 OFFSET(__LC_PGM_TDB, _lowcore, pgm_tdb); 189 OFFSET(__LC_PGM_TDB, lowcore, pgm_tdb);
190 BLANK(); 190 BLANK();
191 /* gmap/sie offsets */ 191 /* gmap/sie offsets */
192 OFFSET(__GMAP_ASCE, gmap, asce); 192 OFFSET(__GMAP_ASCE, gmap, asce);
diff --git a/arch/s390/kernel/crash_dump.c b/arch/s390/kernel/crash_dump.c
index 823ed6ab53c8..a92b39fd0e63 100644
--- a/arch/s390/kernel/crash_dump.c
+++ b/arch/s390/kernel/crash_dump.c
@@ -83,9 +83,9 @@ struct save_area * __init save_area_boot_cpu(void)
83 */ 83 */
84void __init save_area_add_regs(struct save_area *sa, void *regs) 84void __init save_area_add_regs(struct save_area *sa, void *regs)
85{ 85{
86 struct _lowcore *lc; 86 struct lowcore *lc;
87 87
88 lc = (struct _lowcore *)(regs - __LC_FPREGS_SAVE_AREA); 88 lc = (struct lowcore *)(regs - __LC_FPREGS_SAVE_AREA);
89 memcpy(&sa->psw, &lc->psw_save_area, sizeof(sa->psw)); 89 memcpy(&sa->psw, &lc->psw_save_area, sizeof(sa->psw));
90 memcpy(&sa->ctrs, &lc->cregs_save_area, sizeof(sa->ctrs)); 90 memcpy(&sa->ctrs, &lc->cregs_save_area, sizeof(sa->ctrs));
91 memcpy(&sa->gprs, &lc->gpregs_save_area, sizeof(sa->gprs)); 91 memcpy(&sa->gprs, &lc->gpregs_save_area, sizeof(sa->gprs));
diff --git a/arch/s390/kernel/ipl.c b/arch/s390/kernel/ipl.c
index 26d58cf72573..0a5a6b661b93 100644
--- a/arch/s390/kernel/ipl.c
+++ b/arch/s390/kernel/ipl.c
@@ -2041,9 +2041,9 @@ static void do_reset_calls(void)
2041 2041
2042void s390_reset_system(void) 2042void s390_reset_system(void)
2043{ 2043{
2044 struct _lowcore *lc; 2044 struct lowcore *lc;
2045 2045
2046 lc = (struct _lowcore *)(unsigned long) store_prefix(); 2046 lc = (struct lowcore *)(unsigned long) store_prefix();
2047 2047
2048 /* Stack for interrupt/machine check handler */ 2048 /* Stack for interrupt/machine check handler */
2049 lc->panic_stack = S390_lowcore.panic_stack; 2049 lc->panic_stack = S390_lowcore.panic_stack;
diff --git a/arch/s390/kernel/setup.c b/arch/s390/kernel/setup.c
index 22756bb0819e..ea2454d5dcba 100644
--- a/arch/s390/kernel/setup.c
+++ b/arch/s390/kernel/setup.c
@@ -97,7 +97,7 @@ unsigned long MODULES_VADDR;
97unsigned long MODULES_END; 97unsigned long MODULES_END;
98 98
99/* An array with a pointer to the lowcore of every CPU. */ 99/* An array with a pointer to the lowcore of every CPU. */
100struct _lowcore *lowcore_ptr[NR_CPUS]; 100struct lowcore *lowcore_ptr[NR_CPUS];
101EXPORT_SYMBOL(lowcore_ptr); 101EXPORT_SYMBOL(lowcore_ptr);
102 102
103/* 103/*
@@ -291,12 +291,12 @@ void *restart_stack __attribute__((__section__(".data")));
291 291
292static void __init setup_lowcore(void) 292static void __init setup_lowcore(void)
293{ 293{
294 struct _lowcore *lc; 294 struct lowcore *lc;
295 295
296 /* 296 /*
297 * Setup lowcore for boot cpu 297 * Setup lowcore for boot cpu
298 */ 298 */
299 BUILD_BUG_ON(sizeof(struct _lowcore) != LC_PAGES * 4096); 299 BUILD_BUG_ON(sizeof(struct lowcore) != LC_PAGES * 4096);
300 lc = __alloc_bootmem_low(LC_PAGES * PAGE_SIZE, LC_PAGES * PAGE_SIZE, 0); 300 lc = __alloc_bootmem_low(LC_PAGES * PAGE_SIZE, LC_PAGES * PAGE_SIZE, 0);
301 lc->restart_psw.mask = PSW_KERNEL_BITS; 301 lc->restart_psw.mask = PSW_KERNEL_BITS;
302 lc->restart_psw.addr = 302 lc->restart_psw.addr =
diff --git a/arch/s390/kernel/smp.c b/arch/s390/kernel/smp.c
index 654c36ec0c60..a13468b9a913 100644
--- a/arch/s390/kernel/smp.c
+++ b/arch/s390/kernel/smp.c
@@ -64,7 +64,7 @@ enum {
64static DEFINE_PER_CPU(struct cpu *, cpu_device); 64static DEFINE_PER_CPU(struct cpu *, cpu_device);
65 65
66struct pcpu { 66struct pcpu {
67 struct _lowcore *lowcore; /* lowcore page(s) for the cpu */ 67 struct lowcore *lowcore; /* lowcore page(s) for the cpu */
68 unsigned long ec_mask; /* bit mask for ec_xxx functions */ 68 unsigned long ec_mask; /* bit mask for ec_xxx functions */
69 unsigned long ec_clk; /* sigp timestamp for ec_xxx */ 69 unsigned long ec_clk; /* sigp timestamp for ec_xxx */
70 signed char state; /* physical cpu state */ 70 signed char state; /* physical cpu state */
@@ -185,10 +185,10 @@ static void pcpu_ec_call(struct pcpu *pcpu, int ec_bit)
185static int pcpu_alloc_lowcore(struct pcpu *pcpu, int cpu) 185static int pcpu_alloc_lowcore(struct pcpu *pcpu, int cpu)
186{ 186{
187 unsigned long async_stack, panic_stack; 187 unsigned long async_stack, panic_stack;
188 struct _lowcore *lc; 188 struct lowcore *lc;
189 189
190 if (pcpu != &pcpu_devices[0]) { 190 if (pcpu != &pcpu_devices[0]) {
191 pcpu->lowcore = (struct _lowcore *) 191 pcpu->lowcore = (struct lowcore *)
192 __get_free_pages(GFP_KERNEL | GFP_DMA, LC_ORDER); 192 __get_free_pages(GFP_KERNEL | GFP_DMA, LC_ORDER);
193 async_stack = __get_free_pages(GFP_KERNEL, ASYNC_ORDER); 193 async_stack = __get_free_pages(GFP_KERNEL, ASYNC_ORDER);
194 panic_stack = __get_free_page(GFP_KERNEL); 194 panic_stack = __get_free_page(GFP_KERNEL);
@@ -240,7 +240,7 @@ static void pcpu_free_lowcore(struct pcpu *pcpu)
240 240
241static void pcpu_prepare_secondary(struct pcpu *pcpu, int cpu) 241static void pcpu_prepare_secondary(struct pcpu *pcpu, int cpu)
242{ 242{
243 struct _lowcore *lc = pcpu->lowcore; 243 struct lowcore *lc = pcpu->lowcore;
244 244
245 if (MACHINE_HAS_TLB_LC) 245 if (MACHINE_HAS_TLB_LC)
246 cpumask_set_cpu(cpu, &init_mm.context.cpu_attach_mask); 246 cpumask_set_cpu(cpu, &init_mm.context.cpu_attach_mask);
@@ -260,7 +260,7 @@ static void pcpu_prepare_secondary(struct pcpu *pcpu, int cpu)
260 260
261static void pcpu_attach_task(struct pcpu *pcpu, struct task_struct *tsk) 261static void pcpu_attach_task(struct pcpu *pcpu, struct task_struct *tsk)
262{ 262{
263 struct _lowcore *lc = pcpu->lowcore; 263 struct lowcore *lc = pcpu->lowcore;
264 struct thread_info *ti = task_thread_info(tsk); 264 struct thread_info *ti = task_thread_info(tsk);
265 265
266 lc->kernel_stack = (unsigned long) task_stack_page(tsk) 266 lc->kernel_stack = (unsigned long) task_stack_page(tsk)
@@ -276,7 +276,7 @@ static void pcpu_attach_task(struct pcpu *pcpu, struct task_struct *tsk)
276 276
277static void pcpu_start_fn(struct pcpu *pcpu, void (*func)(void *), void *data) 277static void pcpu_start_fn(struct pcpu *pcpu, void (*func)(void *), void *data)
278{ 278{
279 struct _lowcore *lc = pcpu->lowcore; 279 struct lowcore *lc = pcpu->lowcore;
280 280
281 lc->restart_stack = lc->kernel_stack; 281 lc->restart_stack = lc->kernel_stack;
282 lc->restart_fn = (unsigned long) func; 282 lc->restart_fn = (unsigned long) func;
@@ -291,7 +291,7 @@ static void pcpu_start_fn(struct pcpu *pcpu, void (*func)(void *), void *data)
291static void pcpu_delegate(struct pcpu *pcpu, void (*func)(void *), 291static void pcpu_delegate(struct pcpu *pcpu, void (*func)(void *),
292 void *data, unsigned long stack) 292 void *data, unsigned long stack)
293{ 293{
294 struct _lowcore *lc = lowcore_ptr[pcpu - pcpu_devices]; 294 struct lowcore *lc = lowcore_ptr[pcpu - pcpu_devices];
295 unsigned long source_cpu = stap(); 295 unsigned long source_cpu = stap();
296 296
297 __load_psw_mask(PSW_KERNEL_BITS); 297 __load_psw_mask(PSW_KERNEL_BITS);
@@ -923,7 +923,7 @@ void __init smp_prepare_boot_cpu(void)
923 923
924 pcpu->state = CPU_STATE_CONFIGURED; 924 pcpu->state = CPU_STATE_CONFIGURED;
925 pcpu->address = stap(); 925 pcpu->address = stap();
926 pcpu->lowcore = (struct _lowcore *)(unsigned long) store_prefix(); 926 pcpu->lowcore = (struct lowcore *)(unsigned long) store_prefix();
927 S390_lowcore.percpu_offset = __per_cpu_offset[0]; 927 S390_lowcore.percpu_offset = __per_cpu_offset[0];
928 smp_cpu_set_polarization(0, POLARIZATION_UNKNOWN); 928 smp_cpu_set_polarization(0, POLARIZATION_UNKNOWN);
929 set_cpu_present(0, true); 929 set_cpu_present(0, true);
diff --git a/arch/s390/kernel/vdso.c b/arch/s390/kernel/vdso.c
index 59eddb0e1a3e..4f07eaced960 100644
--- a/arch/s390/kernel/vdso.c
+++ b/arch/s390/kernel/vdso.c
@@ -90,7 +90,7 @@ static void vdso_init_data(struct vdso_data *vd)
90 */ 90 */
91#define SEGMENT_ORDER 2 91#define SEGMENT_ORDER 2
92 92
93int vdso_alloc_per_cpu(struct _lowcore *lowcore) 93int vdso_alloc_per_cpu(struct lowcore *lowcore)
94{ 94{
95 unsigned long segment_table, page_table, page_frame; 95 unsigned long segment_table, page_table, page_frame;
96 u32 *psal, *aste; 96 u32 *psal, *aste;
@@ -138,7 +138,7 @@ out:
138 return -ENOMEM; 138 return -ENOMEM;
139} 139}
140 140
141void vdso_free_per_cpu(struct _lowcore *lowcore) 141void vdso_free_per_cpu(struct lowcore *lowcore)
142{ 142{
143 unsigned long segment_table, page_table, page_frame; 143 unsigned long segment_table, page_table, page_frame;
144 u32 *psal, *aste; 144 u32 *psal, *aste;
@@ -163,7 +163,7 @@ static void vdso_init_cr5(void)
163 163
164 if (!vdso_enabled) 164 if (!vdso_enabled)
165 return; 165 return;
166 cr5 = offsetof(struct _lowcore, paste); 166 cr5 = offsetof(struct lowcore, paste);
167 __ctl_load(cr5, 5, 5); 167 __ctl_load(cr5, 5, 5);
168} 168}
169 169
diff --git a/arch/s390/kvm/interrupt.c b/arch/s390/kvm/interrupt.c
index 6a75352f453c..cbad2e6d7dd7 100644
--- a/arch/s390/kvm/interrupt.c
+++ b/arch/s390/kvm/interrupt.c
@@ -399,9 +399,9 @@ static int __must_check __deliver_restart(struct kvm_vcpu *vcpu)
399 trace_kvm_s390_deliver_interrupt(vcpu->vcpu_id, KVM_S390_RESTART, 0, 0); 399 trace_kvm_s390_deliver_interrupt(vcpu->vcpu_id, KVM_S390_RESTART, 0, 0);
400 400
401 rc = write_guest_lc(vcpu, 401 rc = write_guest_lc(vcpu,
402 offsetof(struct _lowcore, restart_old_psw), 402 offsetof(struct lowcore, restart_old_psw),
403 &vcpu->arch.sie_block->gpsw, sizeof(psw_t)); 403 &vcpu->arch.sie_block->gpsw, sizeof(psw_t));
404 rc |= read_guest_lc(vcpu, offsetof(struct _lowcore, restart_psw), 404 rc |= read_guest_lc(vcpu, offsetof(struct lowcore, restart_psw),
405 &vcpu->arch.sie_block->gpsw, sizeof(psw_t)); 405 &vcpu->arch.sie_block->gpsw, sizeof(psw_t));
406 clear_bit(IRQ_PEND_RESTART, &li->pending_irqs); 406 clear_bit(IRQ_PEND_RESTART, &li->pending_irqs);
407 return rc ? -EFAULT : 0; 407 return rc ? -EFAULT : 0;
diff --git a/arch/s390/kvm/priv.c b/arch/s390/kvm/priv.c
index d76b51cb4b62..ed74e86d9b9e 100644
--- a/arch/s390/kvm/priv.c
+++ b/arch/s390/kvm/priv.c
@@ -355,7 +355,7 @@ static int handle_stfl(struct kvm_vcpu *vcpu)
355 * into a u32 memory representation. They will remain bits 0-31. 355 * into a u32 memory representation. They will remain bits 0-31.
356 */ 356 */
357 fac = *vcpu->kvm->arch.model.fac->list >> 32; 357 fac = *vcpu->kvm->arch.model.fac->list >> 32;
358 rc = write_guest_lc(vcpu, offsetof(struct _lowcore, stfl_fac_list), 358 rc = write_guest_lc(vcpu, offsetof(struct lowcore, stfl_fac_list),
359 &fac, sizeof(fac)); 359 &fac, sizeof(fac));
360 if (rc) 360 if (rc)
361 return rc; 361 return rc;
diff --git a/arch/s390/mm/maccess.c b/arch/s390/mm/maccess.c
index 8a993a53fcd6..fec59c067d0d 100644
--- a/arch/s390/mm/maccess.c
+++ b/arch/s390/mm/maccess.c
@@ -163,11 +163,11 @@ static int is_swapped(unsigned long addr)
163 unsigned long lc; 163 unsigned long lc;
164 int cpu; 164 int cpu;
165 165
166 if (addr < sizeof(struct _lowcore)) 166 if (addr < sizeof(struct lowcore))
167 return 1; 167 return 1;
168 for_each_online_cpu(cpu) { 168 for_each_online_cpu(cpu) {
169 lc = (unsigned long) lowcore_ptr[cpu]; 169 lc = (unsigned long) lowcore_ptr[cpu];
170 if (addr > lc + sizeof(struct _lowcore) - 1 || addr < lc) 170 if (addr > lc + sizeof(struct lowcore) - 1 || addr < lc)
171 continue; 171 continue;
172 return 1; 172 return 1;
173 } 173 }