public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/1] jump_label: tidy jump_label_ratelimit.h
@ 2014-08-20  9:29 Zhouyi Zhou
  2014-08-20 21:00 ` Jason Baron
  0 siblings, 1 reply; 4+ messages in thread
From: Zhouyi Zhou @ 2014-08-20  9:29 UTC (permalink / raw)
  To: drjones, konrad.wilk, raghavendra.kt, mingo, davem, hannes,
	linux-kernel
  Cc: Zhouyi Zhou

jump_label_ratelimit.h is split from jump_label.h to enable the 
includers who don't want linux/workqueue.h.
As HAVE_JUMP_LABEL is only defined in jump_label.h, will following  
patch makes jump_labe_ratelimit.h more tidy?

Compiled and Tested in x86_64
Signed-off-by: Zhouyi Zhou <yizhouzhou@ict.ac.cn>
---
 include/linux/jump_label_ratelimit.h |    5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/include/linux/jump_label_ratelimit.h b/include/linux/jump_label_ratelimit.h
index 089f70f..0d34d7e 100644
--- a/include/linux/jump_label_ratelimit.h
+++ b/include/linux/jump_label_ratelimit.h
@@ -4,15 +4,12 @@
 #include <linux/jump_label.h>
 #include <linux/workqueue.h>
 
-#if defined(CC_HAVE_ASM_GOTO) && defined(CONFIG_JUMP_LABEL)
+#ifdef HAVE_JUMP_LABEL
 struct static_key_deferred {
 	struct static_key key;
 	unsigned long timeout;
 	struct delayed_work work;
 };
-#endif
-
-#ifdef HAVE_JUMP_LABEL
 extern void static_key_slow_dec_deferred(struct static_key_deferred *key);
 extern void
 jump_label_rate_limit(struct static_key_deferred *key, unsigned long rl);
-- 
1.7.10.4


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-08-22 14:35 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-20  9:29 [PATCH 1/1] jump_label: tidy jump_label_ratelimit.h Zhouyi Zhou
2014-08-20 21:00 ` Jason Baron
2014-08-21  2:58   ` Zhouyi Zhou
2014-08-22 14:35     ` Jason Baron

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox