Re: [PATCH 2/4] irq_work: Provide a irq work that can be processed on any cpu

2013-11-08 Thread Jan Kara
On Thu 07-11-13 18:31:42, Steven Rostedt wrote: > On Fri, 8 Nov 2013 00:01:11 +0100 > Jan Kara wrote: > > > On Thu 07-11-13 23:54:10, Frederic Weisbecker wrote: > > > > So if the current CPU can handle it, what is the problem? > > I hope this gets cleared out in my other email. But to make

Re: [PATCH 2/4] irq_work: Provide a irq work that can be processed on any cpu

2013-11-08 Thread Jan Kara
On Thu 07-11-13 18:31:42, Steven Rostedt wrote: On Fri, 8 Nov 2013 00:01:11 +0100 Jan Kara j...@suse.cz wrote: On Thu 07-11-13 23:54:10, Frederic Weisbecker wrote: So if the current CPU can handle it, what is the problem? I hope this gets cleared out in my other email. But to make

Re: [PATCH 2/4] irq_work: Provide a irq work that can be processed on any cpu

2013-11-07 Thread Steven Rostedt
On Fri, 8 Nov 2013 00:01:11 +0100 Jan Kara wrote: > On Thu 07-11-13 23:54:10, Frederic Weisbecker wrote: > > So if the current CPU can handle it, what is the problem? > I hope this gets cleared out in my other email. But to make sure: If > other CPUs are idle (i.e. not appending to the printk

Re: [PATCH 2/4] irq_work: Provide a irq work that can be processed on any cpu

2013-11-07 Thread Jan Kara
On Thu 07-11-13 23:54:10, Frederic Weisbecker wrote: > On Thu, Nov 07, 2013 at 11:50:34PM +0100, Jan Kara wrote: > > On Thu 07-11-13 23:23:14, Frederic Weisbecker wrote: > > > On Thu, Nov 07, 2013 at 11:19:04PM +0100, Jan Kara wrote: > > > > On Thu 07-11-13 23:13:39, Frederic Weisbecker wrote: > >

Re: [PATCH 2/4] irq_work: Provide a irq work that can be processed on any cpu

2013-11-07 Thread Frederic Weisbecker
On Thu, Nov 07, 2013 at 11:50:34PM +0100, Jan Kara wrote: > On Thu 07-11-13 23:23:14, Frederic Weisbecker wrote: > > On Thu, Nov 07, 2013 at 11:19:04PM +0100, Jan Kara wrote: > > > On Thu 07-11-13 23:13:39, Frederic Weisbecker wrote: > > > > But then, who's going to process that work if every CPUs

Re: [PATCH 2/4] irq_work: Provide a irq work that can be processed on any cpu

2013-11-07 Thread Jan Kara
On Thu 07-11-13 23:23:14, Frederic Weisbecker wrote: > On Thu, Nov 07, 2013 at 11:19:04PM +0100, Jan Kara wrote: > > On Thu 07-11-13 23:13:39, Frederic Weisbecker wrote: > > > But then, who's going to process that work if every CPUs is idle? > > Have a look into irq_work_queue(). There is: > >

Re: [PATCH 2/4] irq_work: Provide a irq work that can be processed on any cpu

2013-11-07 Thread Frederic Weisbecker
On Thu, Nov 07, 2013 at 11:19:04PM +0100, Jan Kara wrote: > On Thu 07-11-13 23:13:39, Frederic Weisbecker wrote: > > But then, who's going to process that work if every CPUs is idle? > Have a look into irq_work_queue(). There is: > /* > * If the work is not "lazy" or the tick is

Re: [PATCH 2/4] irq_work: Provide a irq work that can be processed on any cpu

2013-11-07 Thread Frederic Weisbecker
On Thu, Nov 07, 2013 at 11:19:04PM +0100, Jan Kara wrote: > On Thu 07-11-13 23:13:39, Frederic Weisbecker wrote: > > But then, who's going to process that work if every CPUs is idle? > Have a look into irq_work_queue(). There is: > /* > * If the work is not "lazy" or the tick is

Re: [PATCH 2/4] irq_work: Provide a irq work that can be processed on any cpu

2013-11-07 Thread Jan Kara
On Thu 07-11-13 23:13:39, Frederic Weisbecker wrote: > 2013/11/7 Jan Kara : > > Provide new irq work flag - IRQ_WORK_UNBOUND - meaning that can be > > processed on any cpu. This flag implies IRQ_WORK_LAZY so that things are > > simple and we don't have to pick any particular cpu to do the work. We

Re: [PATCH 2/4] irq_work: Provide a irq work that can be processed on any cpu

2013-11-07 Thread Frederic Weisbecker
2013/11/7 Jan Kara : > Provide new irq work flag - IRQ_WORK_UNBOUND - meaning that can be > processed on any cpu. This flag implies IRQ_WORK_LAZY so that things are > simple and we don't have to pick any particular cpu to do the work. We > just do the work from a timer tick on whichever cpu it

[PATCH 2/4] irq_work: Provide a irq work that can be processed on any cpu

2013-11-07 Thread Jan Kara
Provide new irq work flag - IRQ_WORK_UNBOUND - meaning that can be processed on any cpu. This flag implies IRQ_WORK_LAZY so that things are simple and we don't have to pick any particular cpu to do the work. We just do the work from a timer tick on whichever cpu it happens first. This is useful as

[PATCH 2/4] irq_work: Provide a irq work that can be processed on any cpu

2013-11-07 Thread Jan Kara
Provide new irq work flag - IRQ_WORK_UNBOUND - meaning that can be processed on any cpu. This flag implies IRQ_WORK_LAZY so that things are simple and we don't have to pick any particular cpu to do the work. We just do the work from a timer tick on whichever cpu it happens first. This is useful as

Re: [PATCH 2/4] irq_work: Provide a irq work that can be processed on any cpu

2013-11-07 Thread Frederic Weisbecker
2013/11/7 Jan Kara j...@suse.cz: Provide new irq work flag - IRQ_WORK_UNBOUND - meaning that can be processed on any cpu. This flag implies IRQ_WORK_LAZY so that things are simple and we don't have to pick any particular cpu to do the work. We just do the work from a timer tick on whichever

Re: [PATCH 2/4] irq_work: Provide a irq work that can be processed on any cpu

2013-11-07 Thread Jan Kara
On Thu 07-11-13 23:13:39, Frederic Weisbecker wrote: 2013/11/7 Jan Kara j...@suse.cz: Provide new irq work flag - IRQ_WORK_UNBOUND - meaning that can be processed on any cpu. This flag implies IRQ_WORK_LAZY so that things are simple and we don't have to pick any particular cpu to do the

Re: [PATCH 2/4] irq_work: Provide a irq work that can be processed on any cpu

2013-11-07 Thread Frederic Weisbecker
On Thu, Nov 07, 2013 at 11:19:04PM +0100, Jan Kara wrote: On Thu 07-11-13 23:13:39, Frederic Weisbecker wrote: But then, who's going to process that work if every CPUs is idle? Have a look into irq_work_queue(). There is: /* * If the work is not lazy or the tick is

Re: [PATCH 2/4] irq_work: Provide a irq work that can be processed on any cpu

2013-11-07 Thread Frederic Weisbecker
On Thu, Nov 07, 2013 at 11:19:04PM +0100, Jan Kara wrote: On Thu 07-11-13 23:13:39, Frederic Weisbecker wrote: But then, who's going to process that work if every CPUs is idle? Have a look into irq_work_queue(). There is: /* * If the work is not lazy or the tick is

Re: [PATCH 2/4] irq_work: Provide a irq work that can be processed on any cpu

2013-11-07 Thread Jan Kara
On Thu 07-11-13 23:23:14, Frederic Weisbecker wrote: On Thu, Nov 07, 2013 at 11:19:04PM +0100, Jan Kara wrote: On Thu 07-11-13 23:13:39, Frederic Weisbecker wrote: But then, who's going to process that work if every CPUs is idle? Have a look into irq_work_queue(). There is: /*

Re: [PATCH 2/4] irq_work: Provide a irq work that can be processed on any cpu

2013-11-07 Thread Frederic Weisbecker
On Thu, Nov 07, 2013 at 11:50:34PM +0100, Jan Kara wrote: On Thu 07-11-13 23:23:14, Frederic Weisbecker wrote: On Thu, Nov 07, 2013 at 11:19:04PM +0100, Jan Kara wrote: On Thu 07-11-13 23:13:39, Frederic Weisbecker wrote: But then, who's going to process that work if every CPUs is idle?

Re: [PATCH 2/4] irq_work: Provide a irq work that can be processed on any cpu

2013-11-07 Thread Jan Kara
On Thu 07-11-13 23:54:10, Frederic Weisbecker wrote: On Thu, Nov 07, 2013 at 11:50:34PM +0100, Jan Kara wrote: On Thu 07-11-13 23:23:14, Frederic Weisbecker wrote: On Thu, Nov 07, 2013 at 11:19:04PM +0100, Jan Kara wrote: On Thu 07-11-13 23:13:39, Frederic Weisbecker wrote: But

Re: [PATCH 2/4] irq_work: Provide a irq work that can be processed on any cpu

2013-11-07 Thread Steven Rostedt
On Fri, 8 Nov 2013 00:01:11 +0100 Jan Kara j...@suse.cz wrote: On Thu 07-11-13 23:54:10, Frederic Weisbecker wrote: So if the current CPU can handle it, what is the problem? I hope this gets cleared out in my other email. But to make sure: If other CPUs are idle (i.e. not appending to the

Re: [PATCH 2/4] irq_work: Provide a irq work that can be processed on any cpu

2013-09-05 Thread Jan Kara
On Wed 21-08-13 14:49:12, Steven Rostedt wrote: > On Wed, 21 Aug 2013 10:08:30 +0200 > Jan Kara wrote: > > > > struct irq_work { > > unsigned long flags; > > diff --git a/kernel/irq_work.c b/kernel/irq_work.c > > index 55fcce6..446cd81 100644 > > --- a/kernel/irq_work.c > > +++

Re: [PATCH 2/4] irq_work: Provide a irq work that can be processed on any cpu

2013-09-05 Thread Jan Kara
On Wed 21-08-13 14:49:12, Steven Rostedt wrote: On Wed, 21 Aug 2013 10:08:30 +0200 Jan Kara j...@suse.cz wrote: struct irq_work { unsigned long flags; diff --git a/kernel/irq_work.c b/kernel/irq_work.c index 55fcce6..446cd81 100644 --- a/kernel/irq_work.c +++

Re: [PATCH 2/4] irq_work: Provide a irq work that can be processed on any cpu

2013-08-21 Thread Steven Rostedt
On Wed, 21 Aug 2013 10:08:30 +0200 Jan Kara wrote: > struct irq_work { > unsigned long flags; > diff --git a/kernel/irq_work.c b/kernel/irq_work.c > index 55fcce6..446cd81 100644 > --- a/kernel/irq_work.c > +++ b/kernel/irq_work.c > @@ -22,6 +22,9 @@ > static DEFINE_PER_CPU(struct

[PATCH 2/4] irq_work: Provide a irq work that can be processed on any cpu

2013-08-21 Thread Jan Kara
Provide new irq work flag - IRQ_WORK_UNBOUND - meaning that can be processed on any cpu. This flag implies IRQ_WORK_LAZY so that things are simple and we don't have to pick any particular cpu to do the work. We just do the work from a timer tick on whichever cpu it happens first. This is useful as

[PATCH 2/4] irq_work: Provide a irq work that can be processed on any cpu

2013-08-21 Thread Jan Kara
Provide new irq work flag - IRQ_WORK_UNBOUND - meaning that can be processed on any cpu. This flag implies IRQ_WORK_LAZY so that things are simple and we don't have to pick any particular cpu to do the work. We just do the work from a timer tick on whichever cpu it happens first. This is useful as

Re: [PATCH 2/4] irq_work: Provide a irq work that can be processed on any cpu

2013-08-21 Thread Steven Rostedt
On Wed, 21 Aug 2013 10:08:30 +0200 Jan Kara j...@suse.cz wrote: struct irq_work { unsigned long flags; diff --git a/kernel/irq_work.c b/kernel/irq_work.c index 55fcce6..446cd81 100644 --- a/kernel/irq_work.c +++ b/kernel/irq_work.c @@ -22,6 +22,9 @@ static DEFINE_PER_CPU(struct

[PATCH 2/4] irq_work: Provide a irq work that can be processed on any cpu

2013-08-14 Thread Jan Kara
Provide new irq work flag - IRQ_WORK_UNBOUND - meaning that can be processed on any cpu. This flag implies IRQ_WORK_LAZY so that things are simple and we don't have to pick any particular cpu to do the work. We just do the work from a timer tick on whichever cpu it happens first. This is useful as

[PATCH 2/4] irq_work: Provide a irq work that can be processed on any cpu

2013-08-14 Thread Jan Kara
Provide new irq work flag - IRQ_WORK_UNBOUND - meaning that can be processed on any cpu. This flag implies IRQ_WORK_LAZY so that things are simple and we don't have to pick any particular cpu to do the work. We just do the work from a timer tick on whichever cpu it happens first. This is useful as