acrn-kernel/arch
Ben Dooks 787dbea11a profile: setup_profiling_timer() is moslty not implemented
The setup_profiling_timer() is mostly un-implemented by many
architectures.  In many places it isn't guarded by CONFIG_PROFILE which is
needed for it to be used.  Make it a weak symbol in kernel/profile.c and
remove the 'return -EINVAL' implementations from the kenrel.

There are a couple of architectures which do return 0 from the
setup_profiling_timer() function but they don't seem to do anything else
with it.  To keep the /proc compatibility for now, leave these for a
future update or removal.

On ARM, this fixes the following sparse warning:
arch/arm/kernel/smp.c:793:5: warning: symbol 'setup_profiling_timer' was not declared. Should it be static?

Link: https://lkml.kernel.org/r/20220721195509.418205-1-ben-linux@fluff.org
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
2022-07-29 18:12:36 -07:00
..
alpha profile: setup_profiling_timer() is moslty not implemented 2022-07-29 18:12:36 -07:00
arc profile: setup_profiling_timer() is moslty not implemented 2022-07-29 18:12:36 -07:00
arm profile: setup_profiling_timer() is moslty not implemented 2022-07-29 18:12:36 -07:00
arm64 profile: setup_profiling_timer() is moslty not implemented 2022-07-29 18:12:36 -07:00
csky profile: setup_profiling_timer() is moslty not implemented 2022-07-29 18:12:36 -07:00
hexagon profile: setup_profiling_timer() is moslty not implemented 2022-07-29 18:12:36 -07:00
ia64 profile: setup_profiling_timer() is moslty not implemented 2022-07-29 18:12:36 -07:00
loongarch LoongArch: Make compute_return_era() return void 2022-06-25 18:06:07 +08:00
m68k
microblaze
mips mips: lantiq: Add missing of_node_put() in irq.c 2022-06-21 22:34:03 +02:00
nios2
openrisc profile: setup_profiling_timer() is moslty not implemented 2022-07-29 18:12:36 -07:00
parisc profile: setup_profiling_timer() is moslty not implemented 2022-07-29 18:12:36 -07:00
powerpc profile: setup_profiling_timer() is moslty not implemented 2022-07-29 18:12:36 -07:00
riscv profile: setup_profiling_timer() is moslty not implemented 2022-07-29 18:12:36 -07:00
s390 s390/pai: Fix multiple concurrent event installation 2022-06-23 17:24:00 +02:00
sh
sparc profile: setup_profiling_timer() is moslty not implemented 2022-07-29 18:12:36 -07:00
um um: virt-pci: set device ready in probe() 2022-06-10 20:38:06 -04:00
x86 profile: setup_profiling_timer() is moslty not implemented 2022-07-29 18:12:36 -07:00
xtensa xtensa: change '.bss' to '.section .bss' 2022-06-20 02:50:34 -07:00
.gitignore
Kconfig