s390/smp,topology: add polarization member to pcpu struct
The cpu polarization member is the only per cpu state that is not part of the pcpu structure. So add it there and have everything in one place. Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
This commit is contained in:

committed by
Martin Schwidefsky

parent
fade4dc491
commit
50ab9a9a60
@@ -51,24 +51,6 @@ static inline void topology_expect_change(void) { }
|
||||
#define POLARIZATION_VM (2)
|
||||
#define POLARIZATION_VH (3)
|
||||
|
||||
extern int cpu_polarization[];
|
||||
|
||||
static inline void cpu_set_polarization(int cpu, int val)
|
||||
{
|
||||
#ifdef CONFIG_SCHED_BOOK
|
||||
cpu_polarization[cpu] = val;
|
||||
#endif
|
||||
}
|
||||
|
||||
static inline int cpu_read_polarization(int cpu)
|
||||
{
|
||||
#ifdef CONFIG_SCHED_BOOK
|
||||
return cpu_polarization[cpu];
|
||||
#else
|
||||
return POLARIZATION_HRZ;
|
||||
#endif
|
||||
}
|
||||
|
||||
#ifdef CONFIG_SCHED_BOOK
|
||||
void s390_init_cpu_topology(void);
|
||||
#else
|
||||
|
Reference in New Issue
Block a user