lkml.org 
[lkml]   [2016]   [Jan]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH 0/3] convert dynamic_debug to use jump labels
Date
Hi,

In the course of adding jump label support to dynamic_debug (patch #3), I
found the inclusion of <linux/bug.h> by <linux/jump_label.h> to problematic b/c
it includes <linux/kernel.h> (thus, creating circular include dependencies).
Thus, patch #1 splits jump_label.h such that 'struct static_key' and
static_branch_[un]likely() can be used with minimail dependencies. I think this
is consistent with how this facility is often used, and should be useful for
other use-cases as well.

Patch #2 was required to get powerpc to compile.

Thanks,

-Jason


Jason Baron (3):
jump_label: create jump_label_branch.h
powerpc: add explicit #include <asm/asm-compat.h> for jump label
dynamic_debug: add jump label support

arch/powerpc/include/asm/jump_label.h | 1 +
include/linux/dynamic_debug.h | 54 ++++++++-
include/linux/jump_label.h | 181 +------------------------------
include/linux/jump_label_branch.h | 199 ++++++++++++++++++++++++++++++++++
lib/dynamic_debug.c | 7 ++
5 files changed, 260 insertions(+), 182 deletions(-)
create mode 100644 include/linux/jump_label_branch.h

--
2.6.1

\
 
 \ /
  Last update: 2016-01-25 23:01    [W:0.322 / U:1.100 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site