Skip to content

Commit 2f24ef7

Browse files
abrodkinvineetgarc
authored andcommitted
ARC: Enable machine_desc->init_per_cpu for !CONFIG_SMP
machine_desc->init_per_cpu() hook is supposed to be per cpu initialization and would seem to apply equally to UP and/or SMP. Infact the comment in header file seems to suggest it works for UP too, which was not the case and this patch. This enables !CONFIG_SMP build for platforms such as hsdk. Signed-off-by: Alexey Brodkin <[email protected]> Signed-off-by: Vineet Gupta <[email protected]> [vgupta: trimmeed changelog]
1 parent 74c11e3 commit 2f24ef7

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

arch/arc/include/asm/mach_desc.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,7 @@ struct machine_desc {
3434
const char *name;
3535
const char **dt_compat;
3636
void (*init_early)(void);
37-
#ifdef CONFIG_SMP
3837
void (*init_per_cpu)(unsigned int);
39-
#endif
4038
void (*init_machine)(void);
4139
void (*init_late)(void);
4240

arch/arc/kernel/irq.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@ void __init init_IRQ(void)
3131
/* a SMP H/w block could do IPI IRQ request here */
3232
if (plat_smp_ops.init_per_cpu)
3333
plat_smp_ops.init_per_cpu(smp_processor_id());
34+
#endif
3435

3536
if (machine_desc->init_per_cpu)
3637
machine_desc->init_per_cpu(smp_processor_id());
37-
#endif
3838
}
3939

4040
/*

0 commit comments

Comments
 (0)