]> git.baikalelectronics.ru Git - kernel.git/commit
jump_label: Split jumplabel ratelimit
authorAndrew Jones <drjones@redhat.com>
Fri, 9 Aug 2013 14:21:57 +0000 (19:51 +0530)
committerH. Peter Anvin <hpa@linux.intel.com>
Fri, 9 Aug 2013 14:53:54 +0000 (07:53 -0700)
commit174a919dfc76d3a3bb6a34cdd12b2f13eac81079
tree24e863ab40ae34501f54c1584f98563f25c611d0
parent418eab1b2d07f8e64cf5be5597380aa910d9a704
jump_label: Split jumplabel ratelimit

Commit eb93a57020f88065f20e9e15b3cb8d961ddf8d2b ("perf, core: Rate limit
perf_sched_events jump_label patching") introduced rate limiting
for jump label disabling. The changes were made in the jump label code
in order to be more widely available and to keep things tidier. This is
all fine, except now jump_label.h includes linux/workqueue.h, which
makes it impossible to include jump_label.h from anything that
workqueue.h needs. For example, it's now impossible to include
jump_label.h from asm/spinlock.h, which is done in proposed
pv-ticketlock patches. This patch splits out the rate limiting related
changes from jump_label.h into a new file, jump_label_ratelimit.h, to
resolve the issue.

Signed-off-by: Andrew Jones <drjones@redhat.com>
Link: http://lkml.kernel.org/r/1376058122-8248-10-git-send-email-raghavendra.kt@linux.vnet.ibm.com
Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Signed-off-by: Raghavendra K T <raghavendra.kt@linux.vnet.ibm.com>
Acked-by: Ingo Molnar <mingo@kernel.org>
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
include/linux/jump_label.h
include/linux/jump_label_ratelimit.h [new file with mode: 0644]
include/linux/perf_event.h
kernel/jump_label.c