Re: [RFC PATCH 3/9] irq_work: Force raised irq work to run on irq work interrupt

From: Frederic Weisbecker
Date: Fri Sep 05 2014 - 09:54:47 EST


On Thu, Sep 04, 2014 at 05:40:20PM +0200, Peter Zijlstra wrote:
> On Thu, Sep 04, 2014 at 03:33:40PM +0200, Frederic Weisbecker wrote:
> > > Why not something like the below; then it becomes a compile time matter.
> >
> > Problem is that some archs only have that information at runtime.
> > See x86 for example which tests cpu_has_apic.
>
> So the other archs can still benefit, no? Also, on x86 cpu features can
> be used with asm_goto/jump_labels, your approach wrecks that too by
> copying it into some static variable, see static_cpu_has().

Ah I didn't know about that static_cpu_has().
I'm going to try the way you suggest then.

Thanks.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/