]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc: Get the number of SLBs from "slb-size" property
authorMichael Neuling <mikey@neuling.org>
Wed, 14 Jan 2009 13:42:41 +0000 (13:42 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Fri, 16 Jan 2009 05:15:16 +0000 (16:15 +1100)
commit042d428ce0c4137b7f4e5e8d518456dae86c9a8d
treeb9e4e94030df5a433dd897015133d6b24c4523c6
parentf75711ac4515db26bcede232030c6ba87a70c9b4
powerpc: Get the number of SLBs from "slb-size" property

The PAPR says that the property for specifying the number of SLBs should
be called "slb-size".  We currently only look for "ibm,slb-size" because
this is what firmware actually presents.

This patch makes us look for the "slb-size" property as well and in
preference to the "ibm,slb-size".  This should future proof us if
firmware changes to match PAPR.

Signed-off-by: Michael Neuling <mikey@neuling.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/kernel/prom.c