powerpc: Pass a valid token to rtas_call() in phyp-dump code

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Linux Kernel Mailing List
Date: Sunday, December 28, 2008 - 6:04 pm

Gitweb:     http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=532774...
Commit:     532774ec7fa396da20ca724c0cf83d93ee76622f
Parent:     7a2eab0d4e656341cc0f6481d722d410f0414f0b
Author:     Tony Breeds <tony@bakeyournoodle.com>
AuthorDate: Mon Dec 15 18:34:43 2008 +0000
Committer:  Paul Mackerras <paulus@samba.org>
CommitDate: Sun Dec 21 14:21:15 2008 +1100

    powerpc: Pass a valid token to rtas_call() in phyp-dump code
    
    ibm_configure_kernel_dump is passed as the token to rtas_call() is
    never initialised.  This sets it to something sane.
    
    Signed-off-by: Tony Breeds <tony@bakeyournoodle.com>
    Acked-by: Nathan Lynch <ntl@pobox.com>
    Acked-by: Manish Ahuja <mahujam@gmail.com>
    Signed-off-by: Paul Mackerras <paulus@samba.org>
---
 arch/powerpc/platforms/pseries/phyp_dump.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/arch/powerpc/platforms/pseries/phyp_dump.c b/arch/powerpc/platforms/pseries/phyp_dump.c
index 16e659a..6cf35cd 100644
--- a/arch/powerpc/platforms/pseries/phyp_dump.c
+++ b/arch/powerpc/platforms/pseries/phyp_dump.c
@@ -414,6 +414,8 @@ static int __init phyp_dump_setup(void)
 		of_node_put(rtas);
 	}
 
+	ibm_configure_kernel_dump = rtas_token("ibm,configure-kernel-dump");
+
 	print_dump_header(dump_header);
 	dump_area_length = init_dump_header(&phdr);
 	/* align down */
--
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
powerpc: Pass a valid token to rtas_call() in phyp-dump code, Linux Kernel Mailing ..., (Sun Dec 28, 6:04 pm)