x86/aperfperf: Make it correct on 32bit and UP kernels
authorThomas Gleixner <tglx@linutronix.de>
Mon, 2 May 2022 07:01:55 +0000 (09:01 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Mon, 2 May 2022 07:19:05 +0000 (09:19 +0200)
commit1ff2fb982c52ed6c3478adc944441d6ea065d8fb
tree62168234ce22bbd1b641edff8335874966f1fe18
parentfb4c77c21aba03677f283acda3cae748ef866abf
x86/aperfperf: Make it correct on 32bit and UP kernels

The utilization of arch_scale_freq_tick() for CPU frequency readouts is
incomplete as it failed to move the function prototype and the define
out of the CONFIG_SMP && CONFIG_X86_64 #ifdef.

Make them unconditionally available.

Fixes: bb6e89df9028 ("x86/aperfmperf: Make parts of the frequency invariance code unconditional")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/lkml/202205010106.06xRBR2C-lkp@intel.com
arch/x86/include/asm/topology.h