aboutsummaryrefslogtreecommitdiffstats
path: root/arch/s390/include/asm
diff options
context:
space:
mode:
authorMartin Schwidefsky <schwidefsky@de.ibm.com>2009-03-26 10:24:42 -0400
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2009-03-26 10:24:26 -0400
commit7b4684880dfc6c45bc56039ca5eada771d7643ab (patch)
treef572dc77a13e56a417616a9b49f74a68ed1dc99a /arch/s390/include/asm
parent2938af534d47891ddbced552e5d29f7b90bec609 (diff)
[S390] eliminate cpuinfo_S390 structure
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch/s390/include/asm')
-rw-r--r--arch/s390/include/asm/lowcore.h15
-rw-r--r--arch/s390/include/asm/processor.h16
-rw-r--r--arch/s390/include/asm/smp.h7
3 files changed, 10 insertions, 28 deletions
diff --git a/arch/s390/include/asm/lowcore.h b/arch/s390/include/asm/lowcore.h
index f94386ece0d..ad543c11826 100644
--- a/arch/s390/include/asm/lowcore.h
+++ b/arch/s390/include/asm/lowcore.h
@@ -80,7 +80,6 @@
80#define __LC_USER_ASCE 0xC50 80#define __LC_USER_ASCE 0xC50
81#define __LC_PANIC_STACK 0xC54 81#define __LC_PANIC_STACK 0xC54
82#define __LC_CPUID 0xC60 82#define __LC_CPUID 0xC60
83#define __LC_CPUADDR 0xC68
84#define __LC_IPLDEV 0xC7C 83#define __LC_IPLDEV 0xC7C
85#define __LC_CURRENT 0xC90 84#define __LC_CURRENT 0xC90
86#define __LC_INT_CLOCK 0xC98 85#define __LC_INT_CLOCK 0xC98
@@ -102,7 +101,6 @@
102#define __LC_USER_ASCE 0xD60 101#define __LC_USER_ASCE 0xD60
103#define __LC_PANIC_STACK 0xD68 102#define __LC_PANIC_STACK 0xD68
104#define __LC_CPUID 0xD80 103#define __LC_CPUID 0xD80
105#define __LC_CPUADDR 0xD88
106#define __LC_IPLDEV 0xDB8 104#define __LC_IPLDEV 0xDB8
107#define __LC_CURRENT 0xDD8 105#define __LC_CURRENT 0xDD8
108#define __LC_INT_CLOCK 0xDE8 106#define __LC_INT_CLOCK 0xDE8
@@ -273,8 +271,10 @@ struct _lowcore
273 __u32 user_exec_asce; /* 0xc58 */ 271 __u32 user_exec_asce; /* 0xc58 */
274 __u8 pad10[0xc60-0xc5c]; /* 0xc5c */ 272 __u8 pad10[0xc60-0xc5c]; /* 0xc5c */
275 /* entry.S sensitive area start */ 273 /* entry.S sensitive area start */
276 struct cpuinfo_S390 cpu_data; /* 0xc60 */ 274 cpuid_t cpu_id; /* 0xc60 */
277 __u32 ipl_device; /* 0xc7c */ 275 __u32 cpu_nr; /* 0xc68 */
276 __u32 ipl_device; /* 0xc6c */
277 __u8 pad_0xc70[0xc80-0xc70]; /* 0xc70 */
278 /* entry.S sensitive area end */ 278 /* entry.S sensitive area end */
279 279
280 /* SMP info area: defined by DJB */ 280 /* SMP info area: defined by DJB */
@@ -366,9 +366,10 @@ struct _lowcore
366 __u64 user_exec_asce; /* 0xd70 */ 366 __u64 user_exec_asce; /* 0xd70 */
367 __u8 pad10[0xd80-0xd78]; /* 0xd78 */ 367 __u8 pad10[0xd80-0xd78]; /* 0xd78 */
368 /* entry.S sensitive area start */ 368 /* entry.S sensitive area start */
369 struct cpuinfo_S390 cpu_data; /* 0xd80 */ 369 cpuid_t cpu_id; /* 0xd80 */
370 __u32 ipl_device; /* 0xdb8 */ 370 __u32 cpu_nr; /* 0xd88 */
371 __u32 pad11; /* 0xdbc */ 371 __u32 ipl_device; /* 0xd8c */
372 __u8 pad_0xd90[0xdc0-0xd90]; /* 0xd90 */
372 /* entry.S sensitive area end */ 373 /* entry.S sensitive area end */
373 374
374 /* SMP info area: defined by DJB */ 375 /* SMP info area: defined by DJB */
diff --git a/arch/s390/include/asm/processor.h b/arch/s390/include/asm/processor.h
index db4523fe38a..61862b3ac79 100644
--- a/arch/s390/include/asm/processor.h
+++ b/arch/s390/include/asm/processor.h
@@ -42,22 +42,8 @@ static inline void get_cpu_id(cpuid_t *ptr)
42 asm volatile("stidp 0(%1)" : "=m" (*ptr) : "a" (ptr)); 42 asm volatile("stidp 0(%1)" : "=m" (*ptr) : "a" (ptr));
43} 43}
44 44
45struct cpuinfo_S390
46{
47 cpuid_t cpu_id;
48 __u16 cpu_addr;
49 __u16 cpu_nr;
50 unsigned long loops_per_jiffy;
51 unsigned long *pgd_quick;
52#ifdef __s390x__
53 unsigned long *pmd_quick;
54#endif /* __s390x__ */
55 unsigned long *pte_quick;
56 unsigned long pgtable_cache_sz;
57};
58
59extern void s390_adjust_jiffies(void); 45extern void s390_adjust_jiffies(void);
60extern void print_cpu_info(struct cpuinfo_S390 *); 46extern void print_cpu_info(void);
61extern int get_cpu_capability(unsigned int *); 47extern int get_cpu_capability(unsigned int *);
62 48
63/* 49/*
diff --git a/arch/s390/include/asm/smp.h b/arch/s390/include/asm/smp.h
index 024b91e0623..2009158a450 100644
--- a/arch/s390/include/asm/smp.h
+++ b/arch/s390/include/asm/smp.h
@@ -50,12 +50,7 @@ extern void machine_power_off_smp(void);
50 50
51#define PROC_CHANGE_PENALTY 20 /* Schedule penalty */ 51#define PROC_CHANGE_PENALTY 20 /* Schedule penalty */
52 52
53#define raw_smp_processor_id() (S390_lowcore.cpu_data.cpu_nr) 53#define raw_smp_processor_id() (S390_lowcore.cpu_nr)
54
55static inline __u16 hard_smp_processor_id(void)
56{
57 return stap();
58}
59 54
60/* 55/*
61 * returns 1 if cpu is in stopped/check stopped state or not operational 56 * returns 1 if cpu is in stopped/check stopped state or not operational