[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20071219125145.f4061fcb.randy.dunlap@oracle.com>
Date: Wed, 19 Dec 2007 12:51:45 -0800
From: Randy Dunlap <randy.dunlap@...cle.com>
To: Remy Bohmer <linux@...mer.net>
Cc: Steven Rostedt <rostedt@...dmis.org>,
Arnaldo Carvalho de Melo <acme@...stprotocols.net>,
Ingo Molnar <mingo@...e.hu>,
Juergen Beisert <jbe@...gutronix.de>,
Darren Hart <dvhltc@...ibm.com>,
linux-rt-users@...r.kernel.org,
Sven-Thorsten Dietrich <sdietrich@...ell.com>,
LKML <linux-kernel@...r.kernel.org>
Subject: Re: [patch 2/3] Enable setting of IRQ-thread priorities from kernel
cmdline (repost:CC to LKML)
On Wed, 19 Dec 2007 20:45:53 +0100 Remy Bohmer wrote:
> Documentation/kernel-parameters.txt | 7 ++
> include/linux/irq.h | 1
> kernel/irq/manage.c | 101 ++++++++++++++++++++++++++++++++----
> 3 files changed, 98 insertions(+), 11 deletions(-)
>
> Index: linux-2.6.24-rc5-rt1/Documentation/kernel-parameters.txt
> ===================================================================
> --- linux-2.6.24-rc5-rt1.orig/Documentation/kernel-parameters.txt 2007-12-18 22:09:13.000000000 +0100
> +++ linux-2.6.24-rc5-rt1/Documentation/kernel-parameters.txt 2007-12-18 22:09:16.000000000 +0100
> @@ -799,6 +799,13 @@ and is between 256 and 4096 characters.
> ips= [HW,SCSI] Adaptec / IBM ServeRAID controller
> See header of drivers/scsi/ips.c.
>
> + irq_pmap= [IRQ-threading] List of priorities each interrupt
> + thread must have.
> + Format: irq_pmap=megasas:90,eth0:40,50
> + The first field without ':', is the default prio.
Drop comma.
> + If this cmdline argument is ommitted, every thread
omitted,
> + runs at prio 50.
> +
> ports= [IP_VS_FTP] IPVS ftp helper module
> Default is 21.
> Up to 8 (IP_VS_APP_MAX_PORTS) ports
> Index: linux-2.6.24-rc5-rt1/kernel/irq/manage.c
> ===================================================================
> --- linux-2.6.24-rc5-rt1.orig/kernel/irq/manage.c 2007-12-18 22:09:13.000000000 +0100
> +++ linux-2.6.24-rc5-rt1/kernel/irq/manage.c 2007-12-18 22:15:43.000000000 +0100
> @@ -901,3 +918,65 @@ void __init early_init_hardirqs(void)
> for (i = 0; i < NR_IRQS; i++)
> init_waitqueue_head(&irq_desc[i].wait_for_handler);
> }
> +
> +#ifdef CONFIG_PREEMPT_HARDIRQS
> +
> +/*
> + * Lookup the interrupt thread priority
> + * A map for the priorities can be given on the kernel commandline.
> + * if name is NULL, or no kernel commandline options is given, the default
If ...................................... option is given,
> + * prio is used, which is either MAX_PRIO/2, or the default given on the
> + * kernel commandline.
> + */
> +static int get_irq_prio(const char *name)
> +{
---
~Randy
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists