[POWERPC] Export flat device tree via debugfs for debugging
authorMichael Ellerman <michael@ellerman.id.au>
Fri, 23 Jun 2006 08:16:03 +0000 (18:16 +1000)
committerPaul Mackerras <paulus@samba.org>
Wed, 28 Jun 2006 01:59:46 +0000 (11:59 +1000)
commit7a4571ae553e2972b7958306fd796a2fd24fd7d1
tree62111278b4bf452e1c481a2e662b910758b8d123
parent1dce0e30471ac863fd141d137c98e3644817975e
[POWERPC] Export flat device tree via debugfs for debugging

If DEBUG is turned on in prom.c, export the flat device tree via debugfs.
This has been handy on several occasions.

To look at it:
 # mount -t debugfs none /sys/kernel/debug
 # od -a /sys/kernel/debug/powerpc/flat-device-tree
 and/or
 # dtc -fI dtb /sys/kernel/debug/powerpc/flat-device-tree -O dts

Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/kernel/prom.c