mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Jason Baron <jbaron@redhat.com>
To: mingo@elte.hu
Cc: rostedt@goodmis.org, mathieu.desnoyers@efficios.com,
	a.p.zijlstra@chello.nl, hpa@zytor.com,
	linux-kernel@vger.kernel.org
Subject: [PATCH 1/2] tracepoint: use static_key_false(), since static_branch() is deprecated
Date: Thu, 28 Jun 2012 15:04:57 -0400	[thread overview]
Message-ID: <5fffcd40a6c063769badcdd74a7d90980500dbcb.1340909155.git.jbaron@redhat.com> (raw)
In-Reply-To: <cover.1340909155.git.jbaron@redhat.com>

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


  reply	other threads:[~2012-06-28 19:06 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-28 19:04 [PATCH 0/2] deprecate static_branch() Jason Baron
2012-06-28 19:04 ` Jason Baron [this message]
2012-07-06 11:26   ` [tip:perf/core] tracepoint: Use static_key_false(), since static_branch() is deprecated 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5fffcd40a6c063769badcdd74a7d90980500dbcb.1340909155.git.jbaron@redhat.com \
    --to=jbaron@redhat.com \
    --cc=a.p.zijlstra@chello.nl \
    --cc=hpa@zytor.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mathieu.desnoyers@efficios.com \
    --cc=mingo@elte.hu \
    --cc=rostedt@goodmis.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®