diff options
| -rw-r--r-- | include/linux/profile.h | 3 | ||||
| -rw-r--r-- | kernel/profile.c | 2 |
2 files changed, 1 insertions, 4 deletions
diff --git a/include/linux/profile.h b/include/linux/profile.h index eec48f5f9348..ff576d1db67d 100644 --- a/include/linux/profile.h +++ b/include/linux/profile.h | |||
| @@ -78,9 +78,6 @@ int profile_event_unregister(enum profile_type, struct notifier_block * n); | |||
| 78 | int register_timer_hook(int (*hook)(struct pt_regs *)); | 78 | int register_timer_hook(int (*hook)(struct pt_regs *)); |
| 79 | void unregister_timer_hook(int (*hook)(struct pt_regs *)); | 79 | void unregister_timer_hook(int (*hook)(struct pt_regs *)); |
| 80 | 80 | ||
| 81 | /* Timer based profiling hook */ | ||
| 82 | extern int (*timer_hook)(struct pt_regs *); | ||
| 83 | |||
| 84 | struct pt_regs; | 81 | struct pt_regs; |
| 85 | 82 | ||
| 86 | #else | 83 | #else |
diff --git a/kernel/profile.c b/kernel/profile.c index 6f69bf792d96..631b75c25d7e 100644 --- a/kernel/profile.c +++ b/kernel/profile.c | |||
| @@ -37,7 +37,7 @@ struct profile_hit { | |||
| 37 | #define NR_PROFILE_GRP (NR_PROFILE_HIT/PROFILE_GRPSZ) | 37 | #define NR_PROFILE_GRP (NR_PROFILE_HIT/PROFILE_GRPSZ) |
| 38 | 38 | ||
| 39 | /* Oprofile timer tick hook */ | 39 | /* Oprofile timer tick hook */ |
| 40 | int (*timer_hook)(struct pt_regs *) __read_mostly; | 40 | static int (*timer_hook)(struct pt_regs *) __read_mostly; |
| 41 | 41 | ||
| 42 | static atomic_t *prof_buffer; | 42 | static atomic_t *prof_buffer; |
| 43 | static unsigned long prof_len, prof_shift; | 43 | static unsigned long prof_len, prof_shift; |
