diff options
Diffstat (limited to 'arch/arc/kernel/setup.c')
-rw-r--r-- | arch/arc/kernel/setup.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/arch/arc/kernel/setup.c b/arch/arc/kernel/setup.c index b2b3731dd1e9..6b083454d039 100644 --- a/arch/arc/kernel/setup.c +++ b/arch/arc/kernel/setup.c | |||
@@ -31,14 +31,14 @@ | |||
31 | int running_on_hw = 1; /* vs. on ISS */ | 31 | int running_on_hw = 1; /* vs. on ISS */ |
32 | 32 | ||
33 | char __initdata command_line[COMMAND_LINE_SIZE]; | 33 | char __initdata command_line[COMMAND_LINE_SIZE]; |
34 | struct machine_desc *machine_desc __cpuinitdata; | 34 | struct machine_desc *machine_desc; |
35 | 35 | ||
36 | struct task_struct *_current_task[NR_CPUS]; /* For stack switching */ | 36 | struct task_struct *_current_task[NR_CPUS]; /* For stack switching */ |
37 | 37 | ||
38 | struct cpuinfo_arc cpuinfo_arc700[NR_CPUS]; | 38 | struct cpuinfo_arc cpuinfo_arc700[NR_CPUS]; |
39 | 39 | ||
40 | 40 | ||
41 | void __cpuinit read_arc_build_cfg_regs(void) | 41 | void read_arc_build_cfg_regs(void) |
42 | { | 42 | { |
43 | struct bcr_perip uncached_space; | 43 | struct bcr_perip uncached_space; |
44 | struct cpuinfo_arc *cpu = &cpuinfo_arc700[smp_processor_id()]; | 44 | struct cpuinfo_arc *cpu = &cpuinfo_arc700[smp_processor_id()]; |
@@ -182,7 +182,7 @@ char *arc_extn_mumbojumbo(int cpu_id, char *buf, int len) | |||
182 | FIX_PTR(cpu); | 182 | FIX_PTR(cpu); |
183 | #define IS_AVAIL1(var, str) ((var) ? str : "") | 183 | #define IS_AVAIL1(var, str) ((var) ? str : "") |
184 | #define IS_AVAIL2(var, str) ((var == 0x2) ? str : "") | 184 | #define IS_AVAIL2(var, str) ((var == 0x2) ? str : "") |
185 | #define IS_USED(var) ((var) ? "(in-use)" : "(not used)") | 185 | #define IS_USED(cfg) (IS_ENABLED(cfg) ? "(in-use)" : "(not used)") |
186 | 186 | ||
187 | n += scnprintf(buf + n, len - n, | 187 | n += scnprintf(buf + n, len - n, |
188 | "Extn [700-Base]\t: %s %s %s %s %s %s\n", | 188 | "Extn [700-Base]\t: %s %s %s %s %s %s\n", |
@@ -202,9 +202,9 @@ char *arc_extn_mumbojumbo(int cpu_id, char *buf, int len) | |||
202 | if (cpu->core.family == 0x34) { | 202 | if (cpu->core.family == 0x34) { |
203 | n += scnprintf(buf + n, len - n, | 203 | n += scnprintf(buf + n, len - n, |
204 | "Extn [700-4.10]\t: LLOCK/SCOND %s, SWAPE %s, RTSC %s\n", | 204 | "Extn [700-4.10]\t: LLOCK/SCOND %s, SWAPE %s, RTSC %s\n", |
205 | IS_USED(__CONFIG_ARC_HAS_LLSC_VAL), | 205 | IS_USED(CONFIG_ARC_HAS_LLSC), |
206 | IS_USED(__CONFIG_ARC_HAS_SWAPE_VAL), | 206 | IS_USED(CONFIG_ARC_HAS_SWAPE), |
207 | IS_USED(__CONFIG_ARC_HAS_RTSC_VAL)); | 207 | IS_USED(CONFIG_ARC_HAS_RTSC)); |
208 | } | 208 | } |
209 | 209 | ||
210 | n += scnprintf(buf + n, len - n, "Extn [CCM]\t: %s", | 210 | n += scnprintf(buf + n, len - n, "Extn [CCM]\t: %s", |
@@ -237,7 +237,7 @@ char *arc_extn_mumbojumbo(int cpu_id, char *buf, int len) | |||
237 | return buf; | 237 | return buf; |
238 | } | 238 | } |
239 | 239 | ||
240 | void __cpuinit arc_chk_ccms(void) | 240 | void arc_chk_ccms(void) |
241 | { | 241 | { |
242 | #if defined(CONFIG_ARC_HAS_DCCM) || defined(CONFIG_ARC_HAS_ICCM) | 242 | #if defined(CONFIG_ARC_HAS_DCCM) || defined(CONFIG_ARC_HAS_ICCM) |
243 | struct cpuinfo_arc *cpu = &cpuinfo_arc700[smp_processor_id()]; | 243 | struct cpuinfo_arc *cpu = &cpuinfo_arc700[smp_processor_id()]; |
@@ -272,7 +272,7 @@ void __cpuinit arc_chk_ccms(void) | |||
272 | * hardware has dedicated regs which need to be saved/restored on ctx-sw | 272 | * hardware has dedicated regs which need to be saved/restored on ctx-sw |
273 | * (Single Precision uses core regs), thus kernel is kind of oblivious to it | 273 | * (Single Precision uses core regs), thus kernel is kind of oblivious to it |
274 | */ | 274 | */ |
275 | void __cpuinit arc_chk_fpu(void) | 275 | void arc_chk_fpu(void) |
276 | { | 276 | { |
277 | struct cpuinfo_arc *cpu = &cpuinfo_arc700[smp_processor_id()]; | 277 | struct cpuinfo_arc *cpu = &cpuinfo_arc700[smp_processor_id()]; |
278 | 278 | ||
@@ -293,7 +293,7 @@ void __cpuinit arc_chk_fpu(void) | |||
293 | * such as only for boot CPU etc | 293 | * such as only for boot CPU etc |
294 | */ | 294 | */ |
295 | 295 | ||
296 | void __cpuinit setup_processor(void) | 296 | void setup_processor(void) |
297 | { | 297 | { |
298 | char str[512]; | 298 | char str[512]; |
299 | int cpu_id = smp_processor_id(); | 299 | int cpu_id = smp_processor_id(); |