Re: [RFC v0] thermal: Protect schedule flag by raw spin
From: Daniel Wagner <hidden>
Date: 2014-05-14 13:36:47
From: Daniel Wagner <hidden>
Date: 2014-05-14 13:36:47
Hi Sebastian, On 05/14/2014 12:23 PM, Sebastian Andrzej Siewior wrote:
quoted
I overlooked that one. I tried to avoid using thread for this but it looks like there isn't a simpler way. I'll do 'x86/mce' version then.as an exercise you could come up with a generic infrastructure which fires up one task and can be re-used by mce and the old other users which attempt schedule a workqueue in hard irq context. I think a simple swait based workqueue like thingy should work.
That is what I am trying to right now. I spend some time to figure out how all this MCE stuff is supposed to work. I think the current code is slightly over engineered and could be a lot simpler. Also for mainline. cheers, daniel