Skip to content

Commit

Permalink
make kernel/profile.c:time_hook static
Browse files Browse the repository at this point in the history
{,un}register_timer_hook() is the API that should be used.

Signed-off-by: Adrian Bunk <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
AdrianBunk authored and Linus Torvalds committed Oct 17, 2007
1 parent 0732a55 commit b012d34
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions include/linux/profile.h
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,6 @@ 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 *));

/* Timer based profiling hook */
extern int (*timer_hook)(struct pt_regs *);

struct pt_regs;

#else
Expand Down
2 changes: 1 addition & 1 deletion kernel/profile.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ struct profile_hit {
#define NR_PROFILE_GRP (NR_PROFILE_HIT/PROFILE_GRPSZ)

/* 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 unsigned long prof_len, prof_shift;
Expand Down

0 comments on commit b012d34

Please sign in to comment.