* [PATCH -rt] softirq: fix undefined rate_limit in softirq_check_pending_idle
@ 2009-06-26 7:46 Wu Zhangjin
2009-06-26 7:47 ` [PATCH -rt] hwlat_detector: add dependence of RING_BUFFER Wu Zhangjin
0 siblings, 1 reply; 2+ messages in thread
From: Wu Zhangjin @ 2009-06-26 7:46 UTC (permalink / raw)
To: LKML; +Cc: Wu Zhangjin, Thomas Gleixner, Ingo Molnar
From: Wu Zhangjin <wuzj@lemote.com>
on !PREEMPT_RT, there is a defined ratelimit in
softirq_check_pending_idel(), but used as rate_limit, so, defining
rate_limit instead of ratelimit will fix it.
Signed-off-by: Wu Zhangjin <wuzj@lemote.com>
---
kernel/softirq.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/kernel/softirq.c b/kernel/softirq.c
index 00b4638..38b44c9 100644
--- a/kernel/softirq.c
+++ b/kernel/softirq.c
@@ -155,9 +155,9 @@ void softirq_check_pending_idle(void)
*/
void softirq_check_pending_idle(void)
{
- static int ratelimit;
+ static int rate_limit;
- if (ratelimit < 10) {
+ if (rate_limit < 10) {
printk(KERN_ERR "NOHZ: local_softirq_pending %02x\n",
local_softirq_pending());
rate_limit++;
--
1.6.0.4
^ permalink raw reply [flat|nested] 2+ messages in thread
* [PATCH -rt] hwlat_detector: add dependence of RING_BUFFER
2009-06-26 7:46 [PATCH -rt] softirq: fix undefined rate_limit in softirq_check_pending_idle Wu Zhangjin
@ 2009-06-26 7:47 ` Wu Zhangjin
0 siblings, 0 replies; 2+ messages in thread
From: Wu Zhangjin @ 2009-06-26 7:47 UTC (permalink / raw)
To: LKML; +Cc: jcm, Wu Zhangjin, Thomas Gleixner, Ingo Molnar
From: Wu Zhangjin <wuzj@lemote.com>
driver/misc/hwlat_detector.c needs the ring_buffer_* functions, which
are defined in kernel/trace/ring_buffer.c, so, hwlat_detector is
dependent on RING_BUFFER.
Signed-off-by: Wu Zhangjin <wuzj@lemote.com>
---
drivers/misc/Kconfig | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/misc/Kconfig b/drivers/misc/Kconfig
index 174b99e..557cbb1 100644
--- a/drivers/misc/Kconfig
+++ b/drivers/misc/Kconfig
@@ -78,7 +78,7 @@ config IBM_ASM
config HWLAT_DETECTOR
tristate "Testing module to detect hardware-induced latencies"
- depends on DEBUG_FS
+ depends on DEBUG_FS && RING_BUFFER
default m
---help---
A simple hardware latency detector. Use this module to detect
--
1.6.0.4
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-06-26 8:16 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-06-26 7:46 [PATCH -rt] softirq: fix undefined rate_limit in softirq_check_pending_idle Wu Zhangjin
2009-06-26 7:47 ` [PATCH -rt] hwlat_detector: add dependence of RING_BUFFER Wu Zhangjin
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®