profiling: Remove unused timer hook
The last remaining user was oprofile and its use has been
removed a while ago in commit bc078e4eab
("oprofile: convert oprofile from timer_hook to hrtimer").
There doesn't seem to be any upstream user of this hook
for about two years now. And I'm not even aware of any out of
tree user.
Let's remove it.
Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Alessio Igor Bogani <abogani@kernel.org>
Cc: Avi Kivity <avi@redhat.com>
Cc: Chris Metcalf <cmetcalf@tilera.com>
Cc: Christoph Lameter <cl@linux.com>
Cc: Geoff Levand <geoff@infradead.org>
Cc: Gilad Ben Yossef <gilad@benyossef.com>
Cc: Hakan Akkan <hakanakkan@gmail.com>
Cc: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Cc: Paul Gortmaker <paul.gortmaker@windriver.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Steven Rostedt <rostedt@goodmis.org>
Link: http://lkml.kernel.org/r/1356191991-2251-1-git-send-email-fweisbec@gmail.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
This commit is contained in:
parent
7c3c867f8d
commit
ba6fdda46b
2 changed files with 0 additions and 37 deletions
|
@ -82,9 +82,6 @@ int task_handoff_unregister(struct notifier_block * n);
|
|||
int profile_event_register(enum profile_type, struct notifier_block * n);
|
||||
int profile_event_unregister(enum profile_type, struct notifier_block * n);
|
||||
|
||||
int register_timer_hook(int (*hook)(struct pt_regs *));
|
||||
void unregister_timer_hook(int (*hook)(struct pt_regs *));
|
||||
|
||||
struct pt_regs;
|
||||
|
||||
#else
|
||||
|
@ -135,16 +132,6 @@ static inline int profile_event_unregister(enum profile_type t, struct notifier_
|
|||
#define profile_handoff_task(a) (0)
|
||||
#define profile_munmap(a) do { } while (0)
|
||||
|
||||
static inline int register_timer_hook(int (*hook)(struct pt_regs *))
|
||||
{
|
||||
return -ENOSYS;
|
||||
}
|
||||
|
||||
static inline void unregister_timer_hook(int (*hook)(struct pt_regs *))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
#endif /* CONFIG_PROFILING */
|
||||
|
||||
#endif /* _LINUX_PROFILE_H */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue