powerpc/smp: Move setup_profiling_timer() under CONFIG_PROFILING
authorMichael Ellerman <mpe@ellerman.id.au>
Wed, 24 Nov 2021 09:32:53 +0000 (20:32 +1100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 27 Jan 2022 08:00:58 +0000 (09:00 +0100)
commitda1e7601b142ca67006d59fd3c902e0277e04488
tree0f0bcf71658c6a8ddf44ce18c11a3a49423bee47
parent202d0e22fe512df0f1cb6253d40ce1058e373247
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>
arch/powerpc/kernel/smp.c