summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorMichael Ellerman <mpe@ellerman.id.au>2021-11-24 20:32:53 +1100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-01-27 08:47:39 +0100
commita55db63e0b7b3d82a4edb6a6955ce57e36c4a2ee (patch)
tree960d0a7a7ea9cdc8a6dfa164260aab97bbaddddd /arch
parenta126a8c3dd51519513141b4fc94fd4813bca2c0f (diff)
downloadlinux-a55db63e0b7b3d82a4edb6a6955ce57e36c4a2ee.tar.gz
linux-a55db63e0b7b3d82a4edb6a6955ce57e36c4a2ee.tar.bz2
linux-a55db63e0b7b3d82a4edb6a6955ce57e36c4a2ee.zip
powerpc/smp: Move setup_profiling_timer() under CONFIG_PROFILING
[ Upstream commit a4ac0d249a5db80e79d573db9e4ad29354b643a8 ] setup_profiling_timer() is only needed when CONFIG_PROFILING is enabled. Fixes the following W=1 warning when CONFIG_PROFILING=n: linux/arch/powerpc/kernel/smp.c:1638:5: error: no previous prototype for ‘setup_profiling_timer’ Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/20211124093254.1054750-5-mpe@ellerman.id.au Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'arch')
-rw-r--r--arch/powerpc/kernel/smp.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/powerpc/kernel/smp.c b/arch/powerpc/kernel/smp.c
index 9c6f3fd58059..31675c1d678b 100644
--- a/arch/powerpc/kernel/smp.c
+++ b/arch/powerpc/kernel/smp.c
@@ -759,10 +759,12 @@ void start_secondary(void *unused)
BUG();
}
+#ifdef CONFIG_PROFILING
int setup_profiling_timer(unsigned int multiplier)
{
return 0;
}
+#endif
#ifdef CONFIG_SCHED_SMT
/* cpumask of CPUs with asymetric SMT dependancy */