提交 fa6d14ca 编写于 作者: G Gu Zitao 提交者: guzitao

sw64: fix compile error and warning for CONFIG_SMP=n

Sunway inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I56OLG

--------------------------------
Signed-off-by: NGu Zitao <guzitao@wxiat.com>
上级 68e59a98
...@@ -52,7 +52,7 @@ void arch_cpu_idle(void) ...@@ -52,7 +52,7 @@ void arch_cpu_idle(void)
static void common_shutdown_1(void *generic_ptr) static void common_shutdown_1(void *generic_ptr)
{ {
struct halt_info *how = (struct halt_info *)generic_ptr; struct halt_info *how = (struct halt_info *)generic_ptr;
int cpuid = smp_processor_id(); int cpuid __maybe_unused = smp_processor_id();
/* No point in taking interrupts anymore. */ /* No point in taking interrupts anymore. */
local_irq_disable(); local_irq_disable();
......
...@@ -4,6 +4,9 @@ ...@@ -4,6 +4,9 @@
#include <linux/delay.h> #include <linux/delay.h>
#include <linux/time.h> #include <linux/time.h>
#include <linux/clk-provider.h> #include <linux/clk-provider.h>
#ifndef CONFIG_SMP
#include <linux/clocksource.h>
#endif
#include <asm/debug.h> #include <asm/debug.h>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册