diff options
author | David S. Miller <davem@davemloft.net> | 2011-08-02 06:27:17 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-08-03 04:28:52 (GMT) |
commit | ea5e7447ea9d555558e0f13798f5143dd51a915a (patch) | |
tree | d444f3edbe02b4dddbc958a78b962a96e703d9ca /arch/sparc/kernel/sstate.c | |
parent | e2eb9f8158ead43a88c0f0b4d74257b1be938a18 (diff) | |
download | linux-fsl-qoriq-ea5e7447ea9d555558e0f13798f5143dd51a915a.tar.xz |
sparc: Set reboot-cmd using reboot data hypervisor call if available.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc/kernel/sstate.c')
-rw-r--r-- | arch/sparc/kernel/sstate.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/arch/sparc/kernel/sstate.c b/arch/sparc/kernel/sstate.c index 8cdbe59..c59af54 100644 --- a/arch/sparc/kernel/sstate.c +++ b/arch/sparc/kernel/sstate.c @@ -14,14 +14,9 @@ #include <asm/head.h> #include <asm/io.h> -static int hv_supports_soft_state; - -static unsigned long kimage_addr_to_ra(const char *p) -{ - unsigned long val = (unsigned long) p; +#include "kernel.h" - return kern_base + (val - KERNBASE); -} +static int hv_supports_soft_state; static void do_set_sstate(unsigned long state, const char *msg) { |