* [PATCH 0/2] deprecate static_branch()
@ 2012-06-28 19:04 Jason Baron
2012-06-28 19:04 ` [PATCH 1/2] tracepoint: use static_key_false(), since static_branch() is deprecated Jason Baron
2012-06-28 19:05 ` [PATCH 2/2] jump label: remove static_branch() Jason Baron
0 siblings, 2 replies; 5+ messages in thread
From: Jason Baron @ 2012-06-28 19:04 UTC (permalink / raw)
To: mingo; +Cc: rostedt, mathieu.desnoyers, a.p.zijlstra, hpa, linux-kernel
Hi,
Enough time has passed since the static_branch() -> static_key_false()
transition. Remove the last user of static_branch(), and kill off
static_branch().
Thanks,
-Jason
Jason Baron (2):
tracepoint: use static_key_false(), since static_branch() is
deprecated
jump label: remove static_branch()
include/linux/jump_label.h | 17 +----------------
include/linux/tracepoint.h | 2 +-
2 files changed, 2 insertions(+), 17 deletions(-)
^ permalink raw reply [flat|nested] 5+ messages in thread* [PATCH 1/2] tracepoint: use static_key_false(), since static_branch() is deprecated
2012-06-28 19:04 [PATCH 0/2] deprecate static_branch() Jason Baron
@ 2012-06-28 19:04 ` Jason Baron
2012-07-06 11:26 ` [tip:perf/core] tracepoint: Use " tip-bot for Jason Baron
2012-06-28 19:05 ` [PATCH 2/2] jump label: remove static_branch() Jason Baron
1 sibling, 1 reply; 5+ messages in thread
From: Jason Baron @ 2012-06-28 19:04 UTC (permalink / raw)
To: mingo; +Cc: rostedt, mathieu.desnoyers, a.p.zijlstra, hpa, linux-kernel
Convert last user of static_branch() -> static_key_false().
Signed-off-by: Jason Baron <jbaron@redhat.com>
---
include/linux/tracepoint.h | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/include/linux/tracepoint.h b/include/linux/tracepoint.h
index bd96ecd..802de56 100644
--- a/include/linux/tracepoint.h
+++ b/include/linux/tracepoint.h
@@ -153,7 +153,7 @@ static inline void tracepoint_synchronize_unregister(void)
} \
static inline void trace_##name##_rcuidle(proto) \
{ \
- if (static_branch(&__tracepoint_##name.key)) \
+ if (static_key_false(&__tracepoint_##name.key)) \
__DO_TRACE(&__tracepoint_##name, \
TP_PROTO(data_proto), \
TP_ARGS(data_args), \
--
1.7.1
^ permalink raw reply [flat|nested] 5+ messages in thread* [tip:perf/core] tracepoint: Use static_key_false(), since static_branch() is deprecated
2012-06-28 19:04 ` [PATCH 1/2] tracepoint: use static_key_false(), since static_branch() is deprecated Jason Baron
@ 2012-07-06 11:26 ` tip-bot for Jason Baron
0 siblings, 0 replies; 5+ messages in thread
From: tip-bot for Jason Baron @ 2012-07-06 11:26 UTC (permalink / raw)
To: linux-tip-commits; +Cc: linux-kernel, hpa, mingo, jbaron, tglx
Commit-ID: 326f418b4c74ab4a6066f38b6144bc6461f9447b
Gitweb: http://git.kernel.org/tip/326f418b4c74ab4a6066f38b6144bc6461f9447b
Author: Jason Baron <jbaron@redhat.com>
AuthorDate: Thu, 28 Jun 2012 15:04:57 -0400
Committer: Ingo Molnar <mingo@kernel.org>
CommitDate: Fri, 6 Jul 2012 10:53:49 +0200
tracepoint: Use static_key_false(), since static_branch() is deprecated
Convert the last user of static_branch() -> static_key_false().
Signed-off-by: Jason Baron <jbaron@redhat.com>
Cc: rostedt@goodmis.org
Cc: mathieu.desnoyers@efficios.com
Cc: a.p.zijlstra@chello.nl
Link: http://lkml.kernel.org/r/5fffcd40a6c063769badcdd74a7d90980500dbcb.1340909155.git.jbaron@redhat.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
---
include/linux/tracepoint.h | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/include/linux/tracepoint.h b/include/linux/tracepoint.h
index bd96ecd..802de56 100644
--- a/include/linux/tracepoint.h
+++ b/include/linux/tracepoint.h
@@ -153,7 +153,7 @@ static inline void tracepoint_synchronize_unregister(void)
} \
static inline void trace_##name##_rcuidle(proto) \
{ \
- if (static_branch(&__tracepoint_##name.key)) \
+ if (static_key_false(&__tracepoint_##name.key)) \
__DO_TRACE(&__tracepoint_##name, \
TP_PROTO(data_proto), \
TP_ARGS(data_args), \
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH 2/2] jump label: remove static_branch()
2012-06-28 19:04 [PATCH 0/2] deprecate static_branch() Jason Baron
2012-06-28 19:04 ` [PATCH 1/2] tracepoint: use static_key_false(), since static_branch() is deprecated Jason Baron
@ 2012-06-28 19:05 ` Jason Baron
2012-07-06 11:27 ` [tip:perf/core] jump label: Remove static_branch() tip-bot for Jason Baron
1 sibling, 1 reply; 5+ messages in thread
From: Jason Baron @ 2012-06-28 19:05 UTC (permalink / raw)
To: mingo; +Cc: rostedt, mathieu.desnoyers, a.p.zijlstra, hpa, linux-kernel
Remove static_branch(), since interface is now static_key_false()/true().
See commit:
c5905afb0ee6550b42c49213da1c22d67316c194 static keys: Introduce
'struct static_key', static_key_true()/false() and
static_key_slow_[inc|dec]()
Signed-off-by: Jason Baron <jbaron@redhat.com>
---
include/linux/jump_label.h | 17 +----------------
1 files changed, 1 insertions(+), 16 deletions(-)
diff --git a/include/linux/jump_label.h b/include/linux/jump_label.h
index c513a40..0976fc4 100644
--- a/include/linux/jump_label.h
+++ b/include/linux/jump_label.h
@@ -42,8 +42,7 @@
* allowed.
*
* Not initializing the key (static data is initialized to 0s anyway) is the
- * same as using STATIC_KEY_INIT_FALSE and static_key_false() is
- * equivalent with static_branch().
+ * same as using STATIC_KEY_INIT_FALSE.
*
*/
@@ -107,12 +106,6 @@ static __always_inline bool static_key_true(struct static_key *key)
return !static_key_false(key);
}
-/* Deprecated. Please use 'static_key_false() instead. */
-static __always_inline bool static_branch(struct static_key *key)
-{
- return arch_static_branch(key);
-}
-
extern struct jump_entry __start___jump_table[];
extern struct jump_entry __stop___jump_table[];
@@ -166,14 +159,6 @@ static __always_inline bool static_key_true(struct static_key *key)
return false;
}
-/* Deprecated. Please use 'static_key_false() instead. */
-static __always_inline bool static_branch(struct static_key *key)
-{
- if (unlikely(atomic_read(&key->enabled)) > 0)
- return true;
- return false;
-}
-
static inline void static_key_slow_inc(struct static_key *key)
{
atomic_inc(&key->enabled);
--
1.7.1
^ permalink raw reply [flat|nested] 5+ messages in thread* [tip:perf/core] jump label: Remove static_branch()
2012-06-28 19:05 ` [PATCH 2/2] jump label: remove static_branch() Jason Baron
@ 2012-07-06 11:27 ` tip-bot for Jason Baron
0 siblings, 0 replies; 5+ messages in thread
From: tip-bot for Jason Baron @ 2012-07-06 11:27 UTC (permalink / raw)
To: linux-tip-commits
Cc: linux-kernel, hpa, mingo, a.p.zijlstra, torvalds, akpm, tglx, jbaron
Commit-ID: 47fbc518a4b5c9a949f7cab8b14a00d3549bf138
Gitweb: http://git.kernel.org/tip/47fbc518a4b5c9a949f7cab8b14a00d3549bf138
Author: Jason Baron <jbaron@redhat.com>
AuthorDate: Thu, 28 Jun 2012 15:05:02 -0400
Committer: Ingo Molnar <mingo@kernel.org>
CommitDate: Fri, 6 Jul 2012 10:53:49 +0200
jump label: Remove static_branch()
Remove the obsolete static_branch() interface, since the supported interface
is now static_key_false()/true() - which is used by all in-tree code.
See commit:
c5905afb0e ("static keys: Introduce 'struct static_key', static_key_true()/false()
and static_key_slow_[inc|dec]()").
Signed-off-by: Jason Baron <jbaron@redhat.com>
Cc: rostedt@goodmis.org
Cc: mathieu.desnoyers@efficios.com
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/199332c47eef8005d5a5bf1018a80d25929a5746.1340909155.git.jbaron@redhat.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
---
include/linux/jump_label.h | 17 +----------------
1 files changed, 1 insertions(+), 16 deletions(-)
diff --git a/include/linux/jump_label.h b/include/linux/jump_label.h
index c513a40..0976fc4 100644
--- a/include/linux/jump_label.h
+++ b/include/linux/jump_label.h
@@ -42,8 +42,7 @@
* allowed.
*
* Not initializing the key (static data is initialized to 0s anyway) is the
- * same as using STATIC_KEY_INIT_FALSE and static_key_false() is
- * equivalent with static_branch().
+ * same as using STATIC_KEY_INIT_FALSE.
*
*/
@@ -107,12 +106,6 @@ static __always_inline bool static_key_true(struct static_key *key)
return !static_key_false(key);
}
-/* Deprecated. Please use 'static_key_false() instead. */
-static __always_inline bool static_branch(struct static_key *key)
-{
- return arch_static_branch(key);
-}
-
extern struct jump_entry __start___jump_table[];
extern struct jump_entry __stop___jump_table[];
@@ -166,14 +159,6 @@ static __always_inline bool static_key_true(struct static_key *key)
return false;
}
-/* Deprecated. Please use 'static_key_false() instead. */
-static __always_inline bool static_branch(struct static_key *key)
-{
- if (unlikely(atomic_read(&key->enabled)) > 0)
- return true;
- return false;
-}
-
static inline void static_key_slow_inc(struct static_key *key)
{
atomic_inc(&key->enabled);
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2012-07-06 11:27 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-06-28 19:04 [PATCH 0/2] deprecate static_branch() Jason Baron
2012-06-28 19:04 ` [PATCH 1/2] tracepoint: use static_key_false(), since static_branch() is deprecated Jason Baron
2012-07-06 11:26 ` [tip:perf/core] tracepoint: Use " tip-bot for Jason Baron
2012-06-28 19:05 ` [PATCH 2/2] jump label: remove static_branch() Jason Baron
2012-07-06 11:27 ` [tip:perf/core] jump label: Remove static_branch() tip-bot for Jason Baron
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome