when disable CONFIG_SMP, we can't build success because of error: implicit declaration of function ‘per_cpu_offset’ per_cpu_offset is available only if CONFIG_SMP is enable.
Signed-off-by: Zhizhou.zhang zhizhou.zh@gmail.com --- arch/arm64/kernel/suspend.c | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/arch/arm64/kernel/suspend.c b/arch/arm64/kernel/suspend.c index 1fa9ce4..3c7dd59 100644 --- a/arch/arm64/kernel/suspend.c +++ b/arch/arm64/kernel/suspend.c @@ -91,11 +91,13 @@ int cpu_suspend(unsigned long arg) cpu_switch_mm(mm->pgd, mm); flush_tlb_all();
+#ifdef CONFIG_SMP /* * Restore per-cpu offset before any kernel * subsystem relying on it has a chance to run. */ set_my_cpu_offset(per_cpu_offset(cpu)); +#endif
/* * Restore HW breakpoint registers to sane values
On Fri, May 02, 2014 at 07:58:42AM +0100, zhizhou.zh@gmail.com wrote:
when disable CONFIG_SMP, we can't build success because of error: implicit declaration of function ?EUR~per_cpu_offset?EUR(TM) per_cpu_offset is available only if CONFIG_SMP is enable.
Signed-off-by: Zhizhou.zhang zhizhou.zh@gmail.com
You should apply commit b57fc9e80692043e2a3a74e1d2c047eb700dcd0c in the mainline instead, that's already been fixed.
Lorenzo
arch/arm64/kernel/suspend.c | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/arch/arm64/kernel/suspend.c b/arch/arm64/kernel/suspend.c index 1fa9ce4..3c7dd59 100644 --- a/arch/arm64/kernel/suspend.c +++ b/arch/arm64/kernel/suspend.c @@ -91,11 +91,13 @@ int cpu_suspend(unsigned long arg) cpu_switch_mm(mm->pgd, mm); flush_tlb_all(); +#ifdef CONFIG_SMP /* * Restore per-cpu offset before any kernel * subsystem relying on it has a chance to run. */ set_my_cpu_offset(per_cpu_offset(cpu)); +#endif /* * Restore HW breakpoint registers to sane values -- 1.7.9.5
I'm sorry. By the way, can you tell me which branch should I track? On Fri, May 02, 2014 at 09:39:43AM +0100, Lorenzo Pieralisi wrote:
On Fri, May 02, 2014 at 07:58:42AM +0100, zhizhou.zh@gmail.com wrote:
when disable CONFIG_SMP, we can't build success because of error: implicit declaration of function ?EUR~per_cpu_offset?EUR(TM) per_cpu_offset is available only if CONFIG_SMP is enable.
Signed-off-by: Zhizhou.zhang zhizhou.zh@gmail.com
You should apply commit b57fc9e80692043e2a3a74e1d2c047eb700dcd0c in the mainline instead, that's already been fixed.
Lorenzo
arch/arm64/kernel/suspend.c | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/arch/arm64/kernel/suspend.c b/arch/arm64/kernel/suspend.c index 1fa9ce4..3c7dd59 100644 --- a/arch/arm64/kernel/suspend.c +++ b/arch/arm64/kernel/suspend.c @@ -91,11 +91,13 @@ int cpu_suspend(unsigned long arg) cpu_switch_mm(mm->pgd, mm); flush_tlb_all(); +#ifdef CONFIG_SMP /* * Restore per-cpu offset before any kernel * subsystem relying on it has a chance to run. */ set_my_cpu_offset(per_cpu_offset(cpu)); +#endif /* * Restore HW breakpoint registers to sane values -- 1.7.9.5
On Fri, May 02, 2014 at 02:20:48PM +0100, Zhi-zhou Zhang wrote:
I'm sorry. By the way, can you tell me which branch should I track?
The mainline kernel, that's what I mentioned.
Lorenzo
On Fri, May 02, 2014 at 09:39:43AM +0100, Lorenzo Pieralisi wrote:
On Fri, May 02, 2014 at 07:58:42AM +0100, zhizhou.zh@gmail.com wrote:
when disable CONFIG_SMP, we can't build success because of error: implicit declaration of function ?EUR~per_cpu_offset?EUR(TM) per_cpu_offset is available only if CONFIG_SMP is enable.
Signed-off-by: Zhizhou.zhang zhizhou.zh@gmail.com
You should apply commit b57fc9e80692043e2a3a74e1d2c047eb700dcd0c in the mainline instead, that's already been fixed.
Lorenzo
arch/arm64/kernel/suspend.c | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/arch/arm64/kernel/suspend.c b/arch/arm64/kernel/suspend.c index 1fa9ce4..3c7dd59 100644 --- a/arch/arm64/kernel/suspend.c +++ b/arch/arm64/kernel/suspend.c @@ -91,11 +91,13 @@ int cpu_suspend(unsigned long arg) cpu_switch_mm(mm->pgd, mm); flush_tlb_all(); +#ifdef CONFIG_SMP /* * Restore per-cpu offset before any kernel * subsystem relying on it has a chance to run. */ set_my_cpu_offset(per_cpu_offset(cpu)); +#endif /* * Restore HW breakpoint registers to sane values -- 1.7.9.5
linaro-kernel@lists.linaro.org