2009-06-26 08:16:41

by wu zhangjin

[permalink] [raw]
Subject: [PATCH -rt] softirq: fix undefined rate_limit in softirq_check_pending_idle

From: Wu Zhangjin <[email protected]>

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 <[email protected]>
---
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


2009-06-26 07:47:54

by wu zhangjin

[permalink] [raw]
Subject: [PATCH -rt] hwlat_detector: add dependence of RING_BUFFER

From: Wu Zhangjin <[email protected]>

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 <[email protected]>
---
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