jump_label: Use more consistent naming
Now that there's still only a few users around, rename things to make them more consistent. Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl> LKML-Reference: <20101014203625.448565169@chello.nl> Signed-off-by: Ingo Molnar <mingo@elte.hu>
This commit is contained in:
committed by
Ingo Molnar
parent
d580ff8699
commit
3b6e901f83
@@ -265,10 +265,10 @@ static void set_tracepoint(struct tracepoint_entry **entry,
|
||||
*/
|
||||
rcu_assign_pointer(elem->funcs, (*entry)->funcs);
|
||||
if (!elem->state && active) {
|
||||
enable_jump_label(&elem->state);
|
||||
jump_label_enable(&elem->state);
|
||||
elem->state = active;
|
||||
} else if (elem->state && !active) {
|
||||
disable_jump_label(&elem->state);
|
||||
jump_label_disable(&elem->state);
|
||||
elem->state = active;
|
||||
}
|
||||
}
|
||||
@@ -285,7 +285,7 @@ static void disable_tracepoint(struct tracepoint *elem)
|
||||
elem->unregfunc();
|
||||
|
||||
if (elem->state) {
|
||||
disable_jump_label(&elem->state);
|
||||
jump_label_disable(&elem->state);
|
||||
elem->state = 0;
|
||||
}
|
||||
rcu_assign_pointer(elem->funcs, NULL);
|
||||
|
Reference in New Issue
Block a user