* [PATCH] get rid of [softirq-NULL]
@ 2009-09-24 20:43 Remy Bohmer
2009-09-24 20:46 ` Remy Bohmer
2009-09-25 8:16 ` Jan Blunck
0 siblings, 2 replies; 3+ messages in thread
From: Remy Bohmer @ 2009-09-24 20:43 UTC (permalink / raw)
To: Thomas Gleixner, LKML, rt-users; +Cc: Remy Bohmer
if CONFIG_HIGH_RES_TIMERS is not configured, still the hrtimer-softirq
is started, so to prevent the name 'softirq-NULL' in 'ps' output we
should still define its name here.
Preventing the softirq from starting at all would touch much more code, so
I chose the easy way here, it is a cosmetic fix anyway.
Signed-off-by: Remy Bohmer <linux@bohmer.net>
---
kernel/softirq.c | 2 --
1 files changed, 0 insertions(+), 2 deletions(-)
diff --git a/kernel/softirq.c b/kernel/softirq.c
index aae8d45..590049c 100644
--- a/kernel/softirq.c
+++ b/kernel/softirq.c
@@ -1139,9 +1139,7 @@ static const char *softirq_names [] =
[NET_RX_SOFTIRQ] = "net-rx",
[BLOCK_SOFTIRQ] = "block",
[TASKLET_SOFTIRQ] = "tasklet",
-#ifdef CONFIG_HIGH_RES_TIMERS
[HRTIMER_SOFTIRQ] = "hrtimer",
-#endif
[RCU_SOFTIRQ] = "rcu",
};
--
1.6.0.4
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] get rid of [softirq-NULL]
2009-09-24 20:43 [PATCH] get rid of [softirq-NULL] Remy Bohmer
@ 2009-09-24 20:46 ` Remy Bohmer
2009-09-25 8:16 ` Jan Blunck
1 sibling, 0 replies; 3+ messages in thread
From: Remy Bohmer @ 2009-09-24 20:46 UTC (permalink / raw)
To: Thomas Gleixner, LKML, rt-users; +Cc: Remy Bohmer
2009/9/24 Remy Bohmer <linux@bohmer.net>:
> if CONFIG_HIGH_RES_TIMERS is not configured, still the hrtimer-softirq
> is started, so to prevent the name 'softirq-NULL' in 'ps' output we
> should still define its name here.
> Preventing the softirq from starting at all would touch much more code, so
> I chose the easy way here, it is a cosmetic fix anyway.
>
> Signed-off-by: Remy Bohmer <linux@bohmer.net>
oops... Forgot to mention that this patch applies to 2.6.31-rt11 (preempt-RT)
> ---
> kernel/softirq.c | 2 --
> 1 files changed, 0 insertions(+), 2 deletions(-)
>
> diff --git a/kernel/softirq.c b/kernel/softirq.c
> index aae8d45..590049c 100644
> --- a/kernel/softirq.c
> +++ b/kernel/softirq.c
> @@ -1139,9 +1139,7 @@ static const char *softirq_names [] =
> [NET_RX_SOFTIRQ] = "net-rx",
> [BLOCK_SOFTIRQ] = "block",
> [TASKLET_SOFTIRQ] = "tasklet",
> -#ifdef CONFIG_HIGH_RES_TIMERS
> [HRTIMER_SOFTIRQ] = "hrtimer",
> -#endif
> [RCU_SOFTIRQ] = "rcu",
> };
>
> --
> 1.6.0.4
>
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] get rid of [softirq-NULL]
2009-09-24 20:43 [PATCH] get rid of [softirq-NULL] Remy Bohmer
2009-09-24 20:46 ` Remy Bohmer
@ 2009-09-25 8:16 ` Jan Blunck
1 sibling, 0 replies; 3+ messages in thread
From: Jan Blunck @ 2009-09-25 8:16 UTC (permalink / raw)
To: Remy Bohmer; +Cc: Thomas Gleixner, LKML, rt-users
On Thu, Sep 24, 2009 at 10:43 PM, Remy Bohmer <linux@bohmer.net> wrote:
> if CONFIG_HIGH_RES_TIMERS is not configured, still the hrtimer-softirq
> is started, so to prevent the name 'softirq-NULL' in 'ps' output we
> should still define its name here.
> Preventing the softirq from starting at all would touch much more code, so
> I chose the easy way here, it is a cosmetic fix anyway.
Anyway, it would be the right thing to do just that.
Just un-define the enum HRTIMER_SOFTIRQ and the code that needs
modification should pop up. Removing it from the enum also disables
the kthread. Most of the code that raises the softirq should be
guarded by CONFIG_HIGH_RES_TIMERS anyway.
HtH,
Jan
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-09-25 8:16 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-09-24 20:43 [PATCH] get rid of [softirq-NULL] Remy Bohmer
2009-09-24 20:46 ` Remy Bohmer
2009-09-25 8:16 ` Jan Blunck
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®