[PATCH] ppc64: actually call prom_send_capabilities
authorPaul Mackerras <paulus@samba.org>
Tue, 31 May 2005 07:01:11 +0000 (17:01 +1000)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Tue, 31 May 2005 15:26:05 +0000 (08:26 -0700)
When I sent in the patch adding the code for the kernel to tell the
firmware about its capabilities on pSeries machines, I included the
function to give the capabilities to firmware but somehow forgot the
hunk that adds the call to the new function.  This patch adds the
call.

Signed-off-by: Paul Mackerras <paulus@samba.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/ppc64/kernel/prom_init.c

index 6f79b7b9b445e8669411e34b48c1ea8ce5135965..bc53967a86436d6b3f4a4f324273e01fdab934b3 100644 (file)
@@ -1880,6 +1880,12 @@ unsigned long __init prom_init(unsigned long r3, unsigned long r4, unsigned long
        prom_setprop(_prom->chosen, "linux,platform",
                     &getprop_rval, sizeof(getprop_rval));
 
+       /*
+        * On pSeries, inform the firmware about our capabilities
+        */
+       if (RELOC(of_platform) & PLATFORM_PSERIES)
+               prom_send_capabilities();
+
        /*
         * On pSeries, copy the CPU hold code
         */