pxa270唤醒后报错:ERROR: Power Handler function yield to low priority thread.[复制链接]
pxa270唤醒后报错:ERROR: Power Handler function yield to low priority thread.
现在加载的驱动加有touch,LCD,button,backlight了,都特别注意了xxx_powerup,xxx_pwerdown里面没有使用同步对象,但是依然报这个错出来。
况且我的PB是5.0的,不过BSP包是4.0上面移植过来的。不知道有没有原因。
实在没办法了。希望有高人指点一下。
在网上找了一些资料:
System Resume from Suspend(PowerOff) ,有時候會出現:ERROR: Power Handler function yield to low priority thread.,google的結果都指向同一個人( Steve Maillet)的回答:
In V5.0 MS added a power down thread so that power down handlers are called on
a thread instead of in the former no-thread kernel context.
The documented idea is that you can now handle synch objects in powerdown code. (There are still limits to synch objects so CloseHandle is still off limits.)
Unfortunately, they implemented this in a way that generates the error
mentioned if the driver's powerdown function blocks on a thread of lower
priority, which would be normal for an application that called into the
driver and has acquired a lock on the synch object in question.
So the upshot is that you are supposed to be able to do synch stuff in power
handlers and under light testing might even seem to work but it is virtually
guaranteed to fail at some point in the future, usually well after product
release. So don't do that.
所以我知道是因為我修改了backlight powerdown function 中呼叫了有使用Sleep( )的function。