powerpc/chrp: Use the same RTAS daemon as pSeries
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Thu, 24 Sep 2009 19:30:05 +0000 (19:30 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Fri, 30 Oct 2009 06:20:53 +0000 (17:20 +1100)
commit3d541c4b7f6efd55a98189afd1b2f1c9d048c1b3
tree37ea005412feedefe836afd0752051b0c93f4f71
parent188917e183cf9ad0374b571006d0fc6d48a7f447
powerpc/chrp: Use the same RTAS daemon as pSeries

The CHRP code has some fishy timer based code to scan the RTAS event
log, which uses a 1KB stack buffer and doesn't even use the results.

The pSeries code as a nicer daemon that allows userspace to read the
event log and basically uses the same RTAS interface

This patch moves rtasd.c out of platform/pseries and makes it usable
by CHRP, after removing the old crufty event log mechanism in there.

The nvram logging part of the daemon is still only available on 64-bit
since the underlying nvram management routines aren't currently shared.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/kernel/Makefile
arch/powerpc/kernel/rtasd.c [moved from arch/powerpc/platforms/pseries/rtasd.c with 95% similarity]
arch/powerpc/platforms/Kconfig
arch/powerpc/platforms/chrp/Kconfig
arch/powerpc/platforms/chrp/setup.c
arch/powerpc/platforms/pseries/Kconfig
arch/powerpc/platforms/pseries/Makefile