pvpanic: Set high notifier priority
authorTakashi Iwai <tiwai@suse.de>
Tue, 6 May 2014 15:52:26 +0000 (17:52 +0200)
committerJiri Slaby <jslaby@suse.cz>
Fri, 21 Nov 2014 13:27:00 +0000 (14:27 +0100)
commit037e69291b28bb3c7ac303c8d743fca393a5532e
tree0ac0eb00310b841784da9c021bb8162fb17a08d8
parentf96abf0060149fbc2093c2de7f4dae9fbff20694
pvpanic: Set high notifier priority

commit 7939831eacd81fccbd7a956b30c7bb3abb9079db upstream.

We've observed the missing pvpanic call at panic, and it turned out
that this was blocked by the broken notifier of drm_fb_helper, where
scheduling may be called during switching to the fb console.
It's fairly difficult to fix the drm_fb problem and a quick fix isn't
foreseen, a simpler solution for the missing pvpanic call would be
just to call this earlier.

In order to assure that, this patch sets a higher priority to pvpanic
notifier_block.  Once when the issue of drm_fb is resolved, we can
remove this priority again.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Matthew Garrett <matthew.garrett@nebula.com>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
drivers/platform/x86/pvpanic.c