提交 b012d346 编写于 作者: A Adrian Bunk 提交者: Linus Torvalds

make kernel/profile.c:time_hook static

{,un}register_timer_hook() is the API that should be used.
Signed-off-by: NAdrian Bunk <bunk@kernel.org>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 0732a552
...@@ -78,9 +78,6 @@ int profile_event_unregister(enum profile_type, struct notifier_block * n); ...@@ -78,9 +78,6 @@ int profile_event_unregister(enum profile_type, struct notifier_block * n);
int register_timer_hook(int (*hook)(struct pt_regs *)); int register_timer_hook(int (*hook)(struct pt_regs *));
void unregister_timer_hook(int (*hook)(struct pt_regs *)); void unregister_timer_hook(int (*hook)(struct pt_regs *));
/* Timer based profiling hook */
extern int (*timer_hook)(struct pt_regs *);
struct pt_regs; struct pt_regs;
#else #else
......
...@@ -37,7 +37,7 @@ struct profile_hit { ...@@ -37,7 +37,7 @@ struct profile_hit {
#define NR_PROFILE_GRP (NR_PROFILE_HIT/PROFILE_GRPSZ) #define NR_PROFILE_GRP (NR_PROFILE_HIT/PROFILE_GRPSZ)
/* Oprofile timer tick hook */ /* Oprofile timer tick hook */
int (*timer_hook)(struct pt_regs *) __read_mostly; static int (*timer_hook)(struct pt_regs *) __read_mostly;
static atomic_t *prof_buffer; static atomic_t *prof_buffer;
static unsigned long prof_len, prof_shift; static unsigned long prof_len, prof_shift;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册