Re: [PATCH] sched: Support compiling out real-time scheduling with REALTIME_SCHED.

2012-08-15 Thread Mike Galbraith
On Wed, 2012-08-15 at 08:10 -0700, Josh Triplett wrote: > On Wed, Aug 15, 2012 at 09:12:20AM +0200, Mike Galbraith wrote: > > On Tue, 2012-08-14 at 13:50 -0700, Trevor Brandt wrote: > > > diff --git a/init/Kconfig b/init/Kconfig > > > index 3f42cd6..768dc76 100644 > > > --- a/init/Kconfig > > >

Re: [PATCH] sched: Support compiling out real-time scheduling with REALTIME_SCHED.

2012-08-15 Thread Steven Rostedt
On Wed, 2012-08-15 at 17:14 +0200, Peter Zijlstra wrote: > Other than that I'm not entirely happy with the growing #ifdef maze. > Granted this new one isn't nearly as bad as some of the existing ones, > but I do wish someone would clean up some of that. To get rid of the #ifdefs, just make the

Re: [PATCH] sched: Support compiling out real-time scheduling with REALTIME_SCHED.

2012-08-15 Thread Peter Zijlstra
On Tue, 2012-08-14 at 13:50 -0700, Trevor Brandt wrote: > Adds support for compiling out the real-time scheduler (SCHED_FIFO > and SCHED_RR) to save space. Changes sched_set_stop_task to use > SCHED_NORMAL rather than SCHED_FIFO, since the kernel only uses this > function as a fake scheduling

Re: [PATCH] sched: Support compiling out real-time scheduling with REALTIME_SCHED.

2012-08-15 Thread Josh Triplett
On Wed, Aug 15, 2012 at 09:12:20AM +0200, Mike Galbraith wrote: > On Tue, 2012-08-14 at 13:50 -0700, Trevor Brandt wrote: > > diff --git a/init/Kconfig b/init/Kconfig > > index 3f42cd6..768dc76 100644 > > --- a/init/Kconfig > > +++ b/init/Kconfig > > @@ -27,6 +27,13 @@ config IRQ_WORK > > bool

Re: [PATCH] sched: Support compiling out real-time scheduling with REALTIME_SCHED.

2012-08-15 Thread Mike Galbraith
On Tue, 2012-08-14 at 13:50 -0700, Trevor Brandt wrote: > diff --git a/init/Kconfig b/init/Kconfig > index 3f42cd6..768dc76 100644 > --- a/init/Kconfig > +++ b/init/Kconfig > @@ -27,6 +27,13 @@ config IRQ_WORK > bool > depends on HAVE_IRQ_WORK > > +config REALTIME_SCHED > + bool

Re: [PATCH] sched: Support compiling out real-time scheduling with REALTIME_SCHED.

2012-08-15 Thread Mike Galbraith
On Tue, 2012-08-14 at 13:50 -0700, Trevor Brandt wrote: diff --git a/init/Kconfig b/init/Kconfig index 3f42cd6..768dc76 100644 --- a/init/Kconfig +++ b/init/Kconfig @@ -27,6 +27,13 @@ config IRQ_WORK bool depends on HAVE_IRQ_WORK +config REALTIME_SCHED + bool Realtime

Re: [PATCH] sched: Support compiling out real-time scheduling with REALTIME_SCHED.

2012-08-15 Thread Josh Triplett
On Wed, Aug 15, 2012 at 09:12:20AM +0200, Mike Galbraith wrote: On Tue, 2012-08-14 at 13:50 -0700, Trevor Brandt wrote: diff --git a/init/Kconfig b/init/Kconfig index 3f42cd6..768dc76 100644 --- a/init/Kconfig +++ b/init/Kconfig @@ -27,6 +27,13 @@ config IRQ_WORK bool

Re: [PATCH] sched: Support compiling out real-time scheduling with REALTIME_SCHED.

2012-08-15 Thread Peter Zijlstra
On Tue, 2012-08-14 at 13:50 -0700, Trevor Brandt wrote: Adds support for compiling out the real-time scheduler (SCHED_FIFO and SCHED_RR) to save space. Changes sched_set_stop_task to use SCHED_NORMAL rather than SCHED_FIFO, since the kernel only uses this function as a fake scheduling priority

Re: [PATCH] sched: Support compiling out real-time scheduling with REALTIME_SCHED.

2012-08-15 Thread Steven Rostedt
On Wed, 2012-08-15 at 17:14 +0200, Peter Zijlstra wrote: Other than that I'm not entirely happy with the growing #ifdef maze. Granted this new one isn't nearly as bad as some of the existing ones, but I do wish someone would clean up some of that. To get rid of the #ifdefs, just make the RT

Re: [PATCH] sched: Support compiling out real-time scheduling with REALTIME_SCHED.

2012-08-15 Thread Mike Galbraith
On Wed, 2012-08-15 at 08:10 -0700, Josh Triplett wrote: On Wed, Aug 15, 2012 at 09:12:20AM +0200, Mike Galbraith wrote: On Tue, 2012-08-14 at 13:50 -0700, Trevor Brandt wrote: diff --git a/init/Kconfig b/init/Kconfig index 3f42cd6..768dc76 100644 --- a/init/Kconfig +++

[PATCH] sched: Support compiling out real-time scheduling with REALTIME_SCHED.

2012-08-14 Thread Trevor Brandt
Adds support for compiling out the real-time scheduler (SCHED_FIFO and SCHED_RR) to save space. Changes sched_set_stop_task to use SCHED_NORMAL rather than SCHED_FIFO, since the kernel only uses this function as a fake scheduling priority for userspace to read to avoid exposing the stop class to

[PATCH] sched: Support compiling out real-time scheduling with REALTIME_SCHED.

2012-08-14 Thread Trevor Brandt
Adds support for compiling out the real-time scheduler (SCHED_FIFO and SCHED_RR) to save space. Changes sched_set_stop_task to use SCHED_NORMAL rather than SCHED_FIFO, since the kernel only uses this function as a fake scheduling priority for userspace to read to avoid exposing the stop class to