Re: [PATCH RFC] irq_work: Flush work on CPU_DYING (was: Re: [PATCH 7/7] printk: Wake up klogd using irq_work)

2012-11-15 Thread Steven Rostedt
On Thu, 2012-11-15 at 13:13 -0500, Steven Rostedt wrote: > > + > > +/* > > + * Run the irq_work entries on this cpu. Requires to be ran from hardirq > > + * context with local IRQs disabled. > > + */ > > +void irq_work_run(void) > > +{ > > + BUG_ON(!in_irq()); > > + __irq_work_run(); > > +} >

Re: [PATCH RFC] irq_work: Flush work on CPU_DYING (was: Re: [PATCH 7/7] printk: Wake up klogd using irq_work)

2012-11-15 Thread Steven Rostedt
On Thu, 2012-11-15 at 11:34 -0500, Steven Rostedt wrote: Frederic, Please add this one fix below: > Index: linux-rt.git/kernel/irq_work.c > === > --- linux-rt.git.orig/kernel/irq_work.c > +++ linux-rt.git/kernel/irq_work.c > @@

Re: [PATCH RFC] irq_work: Flush work on CPU_DYING (was: Re: [PATCH 7/7] printk: Wake up klogd using irq_work)

2012-11-15 Thread Frederic Weisbecker
2012/11/15 Steven Rostedt : > On Thu, 2012-11-15 at 16:25 +0100, Frederic Weisbecker wrote: >> 2012/11/15 Steven Rostedt : >> > On Wed, 2012-11-14 at 21:37 +0100, Frederic Weisbecker wrote: >> >> diff --git a/kernel/time/tick-sched.c b/kernel/time/tick-sched.c >> >> index f249e8c..822d757 100644

[PATCH RFC] irq_work: Flush work on CPU_DYING (was: Re: [PATCH 7/7] printk: Wake up klogd using irq_work)

2012-11-15 Thread Steven Rostedt
On Thu, 2012-11-15 at 16:25 +0100, Frederic Weisbecker wrote: > 2012/11/15 Steven Rostedt : > > On Wed, 2012-11-14 at 21:37 +0100, Frederic Weisbecker wrote: > >> diff --git a/kernel/time/tick-sched.c b/kernel/time/tick-sched.c > >> index f249e8c..822d757 100644 > >> --- a/kernel/time/tick-sched.c

[PATCH RFC] irq_work: Flush work on CPU_DYING (was: Re: [PATCH 7/7] printk: Wake up klogd using irq_work)

2012-11-15 Thread Steven Rostedt
On Thu, 2012-11-15 at 16:25 +0100, Frederic Weisbecker wrote: 2012/11/15 Steven Rostedt rost...@goodmis.org: On Wed, 2012-11-14 at 21:37 +0100, Frederic Weisbecker wrote: diff --git a/kernel/time/tick-sched.c b/kernel/time/tick-sched.c index f249e8c..822d757 100644 ---

Re: [PATCH RFC] irq_work: Flush work on CPU_DYING (was: Re: [PATCH 7/7] printk: Wake up klogd using irq_work)

2012-11-15 Thread Frederic Weisbecker
2012/11/15 Steven Rostedt rost...@goodmis.org: On Thu, 2012-11-15 at 16:25 +0100, Frederic Weisbecker wrote: 2012/11/15 Steven Rostedt rost...@goodmis.org: On Wed, 2012-11-14 at 21:37 +0100, Frederic Weisbecker wrote: diff --git a/kernel/time/tick-sched.c b/kernel/time/tick-sched.c index

Re: [PATCH RFC] irq_work: Flush work on CPU_DYING (was: Re: [PATCH 7/7] printk: Wake up klogd using irq_work)

2012-11-15 Thread Steven Rostedt
On Thu, 2012-11-15 at 11:34 -0500, Steven Rostedt wrote: Frederic, Please add this one fix below: Index: linux-rt.git/kernel/irq_work.c === --- linux-rt.git.orig/kernel/irq_work.c +++ linux-rt.git/kernel/irq_work.c @@ -14,6

Re: [PATCH RFC] irq_work: Flush work on CPU_DYING (was: Re: [PATCH 7/7] printk: Wake up klogd using irq_work)

2012-11-15 Thread Steven Rostedt
On Thu, 2012-11-15 at 13:13 -0500, Steven Rostedt wrote: + +/* + * Run the irq_work entries on this cpu. Requires to be ran from hardirq + * context with local IRQs disabled. + */ +void irq_work_run(void) +{ + BUG_ON(!in_irq()); + __irq_work_run(); +}