On Fri, Feb 27, 2009 at 12:30 PM, Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxx> wrote: > > > On Fri, 27 Feb 2009, Alan Stern wrote: >> >> Perhaps these aren't all the sort of usage you're talking about, but I >> bet most of them are. It certainly looks like more than just ARM. >> Maybe not all that much more, but definitely more. And the number will >> only grow in the future. > > Are you really sure? Because it can't be x86. I'm pretty sure that that is > simply not how x86 wake events _work_ - they're not interrupts. They are not interrupts on every arm platform that implements set_wake either, but it is useful to pretend that they are. If the platform code reads the wakeup status and marks the corresponding interrupt pending, the driver does not need to know if the event occurred before or after the system entered the low power state. I don't know if this can be implemented on x86, but it might be worth looking into. > > And that's the big point that people seem to be missing here: the whole > "wake up interrupt" thing is not some generic model in the first place. I > strongly suspect that it literally only works on certain architectures. My point was that it was not specific to our platform. I don't have a problem fixing our platform if this patch is merged, but this is case where a change to the generic code breaks some platforms. I don't think there is a good reason to make the fix arm specific, trivial or not, since any platform implementing set_wake may run into the race condition that this patch introduced. If the platform does not implement set_wake, IRQ_WAKEUP never gets set, and the fix should not have any effect. -- Arve Hjønnevåg _______________________________________________ linux-pm mailing list linux-pm@xxxxxxxxxxxxxxxxxxxxxxxxxx https://lists.linux-foundation.org/mailman/listinfo/linux-pm