treewide: remove redundant IS_ERR() before error code check
[linux/fpc-iii.git] / arch / arc / oprofile / common.c
blob86bf5899533b7d5138504833b7486bec2c84b44c
1 // SPDX-License-Identifier: GPL-2.0-only
2 /*
3 * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com)
5 * Based on orig code from @author John Levon <levon@movementarian.org>
6 */
8 #include <linux/oprofile.h>
9 #include <linux/perf_event.h>
11 int __init oprofile_arch_init(struct oprofile_operations *ops)
14 * A failure here, forces oprofile core to switch to Timer based PC
15 * sampling, which will happen if say perf is not enabled/available
17 return oprofile_perf_init(ops);
20 void oprofile_arch_exit(void)
22 oprofile_perf_exit();