]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/pseries: Check for GIQ indicator before calling set-indicator
authorNathan Lynch <ntl@pobox.com>
Thu, 11 Dec 2008 09:14:25 +0000 (09:14 +0000)
committerPaul Mackerras <paulus@samba.org>
Tue, 16 Dec 2008 04:53:13 +0000 (15:53 +1100)
commit32d0c7ad093995c09b9594b07512965e7c86a240
tree9d712442158c4276f1af551c518c4247da6ff2ba
parentebc8277356c881db043f5861986cc524639440d1
powerpc/pseries: Check for GIQ indicator before calling set-indicator

Since "Factor out cpu joining/unjoining the GIQ"
(22a9bab19ea04676e99571ba8d176083e8fa87ce) the WARN_ON in
xics_set_cpu_giq() is being triggered during boot on JS20 because the
GIQ indicator is not available on that platform.  While the warning is
harmless and the system runs normally, it's nicer to check for the
existence of the indicator before trying to manipulate it.

Implement rtas_indicator_present(), which searches the
/rtas/rtas-indicators property for the given indicator token, and use
this function in xics_set_cpu_giq().

Also use a WARN statement in xics_set_cpu_giq to get better
information on failure.

Signed-off-by: Nathan Lynch <ntl@pobox.com>
Acked-by: Milton Miller <miltonm@bga.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/include/asm/rtas.h
arch/powerpc/kernel/rtas.c
arch/powerpc/platforms/pseries/xics.c