Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

arch: parisc: Remove CONFIG_OPROFILE support

The "oprofile" user-space tools don't use the kernel OPROFILE support
any more, and haven't in a long time. User-space has been converted to
the perf interfaces.

Remove the old oprofile's architecture specific support.

Suggested-by: Christoph Hellwig <hch@infradead.org>
Suggested-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Acked-by: Robert Richter <rric@kernel.org>
Acked-by: William Cohen <wcohen@redhat.com>
Acked-by: Al Viro <viro@zeniv.linux.org.uk>
Acked-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Helge Deller <deller@gmx.de> # parisc

-36
-1
arch/parisc/Kconfig
··· 4 4 select ARCH_32BIT_OFF_T if !64BIT 5 5 select ARCH_MIGHT_HAVE_PC_PARPORT 6 6 select HAVE_IDE 7 - select HAVE_OPROFILE 8 7 select HAVE_FUNCTION_TRACER 9 8 select HAVE_FUNCTION_GRAPH_TRACER 10 9 select HAVE_SYSCALL_TRACEPOINTS
-2
arch/parisc/Makefile
··· 116 116 core-y += $(addprefix arch/parisc/, $(kernel-y)) 117 117 libs-y += arch/parisc/lib/ $(LIBGCC) 118 118 119 - drivers-$(CONFIG_OPROFILE) += arch/parisc/oprofile/ 120 - 121 119 boot := arch/parisc/boot 122 120 123 121 PALO := $(shell if (which palo 2>&1); then : ; \
-10
arch/parisc/oprofile/Makefile
··· 1 - # SPDX-License-Identifier: GPL-2.0 2 - obj-$(CONFIG_OPROFILE) += oprofile.o 3 - 4 - DRIVER_OBJS = $(addprefix ../../../drivers/oprofile/, \ 5 - oprof.o cpu_buffer.o buffer_sync.o \ 6 - event_buffer.o oprofile_files.o \ 7 - oprofilefs.o oprofile_stats.o \ 8 - timer_int.o ) 9 - 10 - oprofile-y := $(DRIVER_OBJS) init.o
-23
arch/parisc/oprofile/init.c
··· 1 - /** 2 - * @file init.c 3 - * 4 - * @remark Copyright 2002 OProfile authors 5 - * @remark Read the file COPYING 6 - * 7 - * @author John Levon <levon@movementarian.org> 8 - */ 9 - 10 - #include <linux/errno.h> 11 - #include <linux/init.h> 12 - #include <linux/kernel.h> 13 - #include <linux/oprofile.h> 14 - 15 - int __init oprofile_arch_init(struct oprofile_operations *ops) 16 - { 17 - return -ENODEV; 18 - } 19 - 20 - 21 - void oprofile_arch_exit(void) 22 - { 23 - }