diff options
Diffstat (limited to 'arch/arm/kernel/smp_twd.c')
-rw-r--r-- | arch/arm/kernel/smp_twd.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/kernel/smp_twd.c b/arch/arm/kernel/smp_twd.c index c092115d903a..3f2565037480 100644 --- a/arch/arm/kernel/smp_twd.c +++ b/arch/arm/kernel/smp_twd.c | |||
@@ -22,6 +22,7 @@ | |||
22 | #include <linux/of_irq.h> | 22 | #include <linux/of_irq.h> |
23 | #include <linux/of_address.h> | 23 | #include <linux/of_address.h> |
24 | 24 | ||
25 | #include <asm/smp_plat.h> | ||
25 | #include <asm/smp_twd.h> | 26 | #include <asm/smp_twd.h> |
26 | #include <asm/localtimer.h> | 27 | #include <asm/localtimer.h> |
27 | 28 | ||
@@ -373,6 +374,9 @@ void __init twd_local_timer_of_register(void) | |||
373 | struct device_node *np; | 374 | struct device_node *np; |
374 | int err; | 375 | int err; |
375 | 376 | ||
377 | if (!is_smp() || !setup_max_cpus) | ||
378 | return; | ||
379 | |||
376 | np = of_find_matching_node(NULL, twd_of_match); | 380 | np = of_find_matching_node(NULL, twd_of_match); |
377 | if (!np) | 381 | if (!np) |
378 | return; | 382 | return; |