Skip to content

Commit

Permalink
jump label: Make arch_jump_label_text_poke_early() optional
Browse files Browse the repository at this point in the history
Some archs do not need to do anything special for jump labels on
startup (like MIPS).  This patch adds a weak function stub for
arch_jump_label_text_poke_early();

Cc: Jason Baron <[email protected]>
Cc: David Miller <[email protected]>
Cc: David Daney <[email protected]>
Suggested-by: Thomas Gleixner <[email protected]>
LKML-Reference: <[email protected]>
LKML-Reference: <[email protected]>
Signed-off-by: Steven Rostedt <[email protected]>
  • Loading branch information
Steven Rostedt authored and rostedt committed Oct 29, 2010
1 parent de31c3c commit 95bcd68
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions kernel/jump_label.c
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,13 @@ int jump_label_text_reserved(void *start, void *end)
return conflict;
}

/*
* Not all archs need this.
*/
void __weak arch_jump_label_text_poke_early(jump_label_t addr)
{
}

static __init int init_jump_label(void)
{
int ret;
Expand Down

0 comments on commit 95bcd68

Please sign in to comment.