diff options
author | Viresh Kumar <viresh.kumar@linaro.org> | 2021-01-14 17:05:16 +0530 |
---|---|---|
committer | Viresh Kumar <viresh.kumar@linaro.org> | 2021-01-22 12:12:03 +0530 |
commit | 993b832fda6ad4f350dcc4440113ba95c05621ae (patch) | |
tree | 9c93794e882ba7bfaacaab1b4e266abebf75a728 /arch/arc/oprofile/common.c | |
parent | d50b870b272aaad8757a2b240f038b1c204e2f8e (diff) | |
download | linux-993b832fda6ad4f350dcc4440113ba95c05621ae.tar.gz linux-993b832fda6ad4f350dcc4440113ba95c05621ae.tar.bz2 linux-993b832fda6ad4f350dcc4440113ba95c05621ae.zip |
arch: arc: 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: Vineet Gupta <vgupta@synopsys.com>
Acked-by: William Cohen <wcohen@redhat.com>
Acked-by: Al Viro <viro@zeniv.linux.org.uk>
Acked-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'arch/arc/oprofile/common.c')
-rw-r--r-- | arch/arc/oprofile/common.c | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/arch/arc/oprofile/common.c b/arch/arc/oprofile/common.c deleted file mode 100644 index 86bf5899533b..000000000000 --- a/arch/arc/oprofile/common.c +++ /dev/null @@ -1,23 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0-only -/* - * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com) - * - * Based on orig code from @author John Levon <levon@movementarian.org> - */ - -#include <linux/oprofile.h> -#include <linux/perf_event.h> - -int __init oprofile_arch_init(struct oprofile_operations *ops) -{ - /* - * A failure here, forces oprofile core to switch to Timer based PC - * sampling, which will happen if say perf is not enabled/available - */ - return oprofile_perf_init(ops); -} - -void oprofile_arch_exit(void) -{ - oprofile_perf_exit(); -} |