diff options
Diffstat (limited to 'arch/s390/kernel/setup.c')
-rw-r--r-- | arch/s390/kernel/setup.c | 20 |
1 files changed, 3 insertions, 17 deletions
diff --git a/arch/s390/kernel/setup.c b/arch/s390/kernel/setup.c index 91625f759ccd..6309276516b9 100644 --- a/arch/s390/kernel/setup.c +++ b/arch/s390/kernel/setup.c | |||
@@ -113,22 +113,6 @@ static struct resource data_resource = { | |||
113 | }; | 113 | }; |
114 | 114 | ||
115 | /* | 115 | /* |
116 | * cpu_init() initializes state that is per-CPU. | ||
117 | */ | ||
118 | void __cpuinit cpu_init(void) | ||
119 | { | ||
120 | /* | ||
121 | * Store processor id in lowcore (used e.g. in timer_interrupt) | ||
122 | */ | ||
123 | get_cpu_id(&S390_lowcore.cpu_id); | ||
124 | |||
125 | atomic_inc(&init_mm.mm_count); | ||
126 | current->active_mm = &init_mm; | ||
127 | BUG_ON(current->mm); | ||
128 | enter_lazy_tlb(&init_mm, current); | ||
129 | } | ||
130 | |||
131 | /* | ||
132 | * condev= and conmode= setup parameter. | 116 | * condev= and conmode= setup parameter. |
133 | */ | 117 | */ |
134 | 118 | ||
@@ -695,6 +679,7 @@ static void __init setup_hwcaps(void) | |||
695 | static const int stfl_bits[6] = { 0, 2, 7, 17, 19, 21 }; | 679 | static const int stfl_bits[6] = { 0, 2, 7, 17, 19, 21 }; |
696 | unsigned long long facility_list_extended; | 680 | unsigned long long facility_list_extended; |
697 | unsigned int facility_list; | 681 | unsigned int facility_list; |
682 | struct cpuid cpu_id; | ||
698 | int i; | 683 | int i; |
699 | 684 | ||
700 | facility_list = stfl(); | 685 | facility_list = stfl(); |
@@ -756,7 +741,8 @@ static void __init setup_hwcaps(void) | |||
756 | */ | 741 | */ |
757 | elf_hwcap |= HWCAP_S390_HIGH_GPRS; | 742 | elf_hwcap |= HWCAP_S390_HIGH_GPRS; |
758 | 743 | ||
759 | switch (S390_lowcore.cpu_id.machine) { | 744 | get_cpu_id(&cpu_id); |
745 | switch (cpu_id.machine) { | ||
760 | case 0x9672: | 746 | case 0x9672: |
761 | #if !defined(CONFIG_64BIT) | 747 | #if !defined(CONFIG_64BIT) |
762 | default: /* Use "g5" as default for 31 bit kernels. */ | 748 | default: /* Use "g5" as default for 31 bit kernels. */ |