Re: [RFC PATCH 1/5] irq_work: Move irq_work_raise() declaration/default definition to arch headers

2012-10-16 Thread Mark Brown
On Tue, Oct 16, 2012 at 09:25:11AM +, Arnd Bergmann wrote: > On Tuesday 16 October 2012, Mark Brown wrote: > > That'd work, but I assume there is some reason why we've got this system > > of explicitly adding each file. It's not like cpp can test for the > > presence of include files. If we

Re: [RFC PATCH 1/5] irq_work: Move irq_work_raise() declaration/default definition to arch headers

2012-10-16 Thread Arnd Bergmann
On Tuesday 16 October 2012, Mark Brown wrote: > On Tue, Oct 16, 2012 at 12:18:05AM +0200, Frederic Weisbecker wrote: > > I came up with stuff for it, though it needed prettyfying. > > > This seems to do the trick: > > > (It's the diff result of ln -s asm-generic include/asm) Unfortunately, this

Re: [RFC PATCH 1/5] irq_work: Move irq_work_raise() declaration/default definition to arch headers

2012-10-15 Thread Mark Brown
On Tue, Oct 16, 2012 at 12:18:05AM +0200, Frederic Weisbecker wrote: > 2012/10/15 Arnd Bergmann : > > On Monday 15 October 2012, Steven Rostedt wrote: > >> On Mon, 2012-10-15 at 22:23 +0200, Frederic Weisbecker wrote: > >> > 2012/10/15 Steven Rostedt : > >> > > On Mon, 2012-10-15 at 17:11 +0100, Ca

Re: [RFC PATCH 1/5] irq_work: Move irq_work_raise() declaration/default definition to arch headers

2012-10-15 Thread Frederic Weisbecker
2012/10/15 Arnd Bergmann : > On Monday 15 October 2012, Steven Rostedt wrote: >> On Mon, 2012-10-15 at 22:23 +0200, Frederic Weisbecker wrote: >> > 2012/10/15 Steven Rostedt : >> > > On Mon, 2012-10-15 at 17:11 +0100, Catalin Marinas wrote: >> > > BTW, is there any rational reason that the include

Re: [RFC PATCH 1/5] irq_work: Move irq_work_raise() declaration/default definition to arch headers

2012-10-15 Thread Arnd Bergmann
On Monday 15 October 2012, Steven Rostedt wrote: > On Mon, 2012-10-15 at 22:23 +0200, Frederic Weisbecker wrote: > > 2012/10/15 Steven Rostedt : > > > On Mon, 2012-10-15 at 17:11 +0100, Catalin Marinas wrote: > > > BTW, is there any rational reason that the include path lookup doesn't > > > just ch

Re: [RFC PATCH 1/5] irq_work: Move irq_work_raise() declaration/default definition to arch headers

2012-10-15 Thread Steven Rostedt
On Mon, 2012-10-15 at 22:23 +0200, Frederic Weisbecker wrote: > 2012/10/15 Steven Rostedt : > > On Mon, 2012-10-15 at 17:11 +0100, Catalin Marinas wrote: > >> On 12 October 2012 19:09, Frederic Weisbecker wrote: > >> > diff --git a/arch/arm/include/asm/irq_work.h > >> > b/arch/arm/include/asm/irq

Re: [RFC PATCH 1/5] irq_work: Move irq_work_raise() declaration/default definition to arch headers

2012-10-15 Thread Frederic Weisbecker
2012/10/15 Steven Rostedt : > On Mon, 2012-10-15 at 17:11 +0100, Catalin Marinas wrote: >> On 12 October 2012 19:09, Frederic Weisbecker wrote: >> > diff --git a/arch/arm/include/asm/irq_work.h >> > b/arch/arm/include/asm/irq_work.h >> > new file mode 100644 >> > index 000..f1bffa2 >> > --- /

Re: [RFC PATCH 1/5] irq_work: Move irq_work_raise() declaration/default definition to arch headers

2012-10-15 Thread Steven Rostedt
On Mon, 2012-10-15 at 17:11 +0100, Catalin Marinas wrote: > On 12 October 2012 19:09, Frederic Weisbecker wrote: > > diff --git a/arch/arm/include/asm/irq_work.h > > b/arch/arm/include/asm/irq_work.h > > new file mode 100644 > > index 000..f1bffa2 > > --- /dev/null > > +++ b/arch/arm/include/

Re: [RFC PATCH 1/5] irq_work: Move irq_work_raise() declaration/default definition to arch headers

2012-10-15 Thread Catalin Marinas
On 12 October 2012 19:09, Frederic Weisbecker wrote: > diff --git a/arch/arm/include/asm/irq_work.h b/arch/arm/include/asm/irq_work.h > new file mode 100644 > index 000..f1bffa2 > --- /dev/null > +++ b/arch/arm/include/asm/irq_work.h > @@ -0,0 +1 @@ > +#include > diff --git a/arch/arm64/inclu

[RFC PATCH 1/5] irq_work: Move irq_work_raise() declaration/default definition to arch headers

2012-10-12 Thread Frederic Weisbecker
This optimization doesn't matter much. But this prepares the arch headers that we need to add a new API in order to detect when the arch hooks on the tick to implement the irq work. This is necessary later to make printk working in nohz CPUs. Signed-off-by: Frederic Weisbecker Cc: Peter Zijlstra