powernv/opal: Notifier for OPAL events
authorGavin Shan <shangw@linux.vnet.ibm.com>
Thu, 20 Jun 2013 10:13:22 +0000 (18:13 +0800)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Fri, 21 Jun 2013 06:01:50 +0000 (16:01 +1000)
commit1bc98de26d3f270e004421685a8e698e91cf95ca
treed7d6c70bff77b07b804824496cd65d044b65f44d
parentb95cd2cd44b39cf11087b15f74e29ef9f2c6bf0f
powernv/opal: Notifier for OPAL events

This patch implements a notifier to receive a notification on OPAL
event mask changes. The notifier is only called as a result of an OPAL
interrupt, which will happen upon reception of FSP messages or PCI errors.
Any event mask change detected as a result of opal_poll_events() will not
result in a notifier call.

[benh: changelog]
Signed-off-by: Gavin Shan <shangw@linux.vnet.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/include/asm/opal.h
arch/powerpc/platforms/powernv/opal.c