linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Nathan Fontenot <nfont@austin.ibm.com>
To: linuxppc-dev@ozlabs.org
Subject: [PATCH 2/3] Export rtas_ibm_suspend_me()
Date: Fri, 10 Sep 2010 14:41:35 -0500	[thread overview]
Message-ID: <4C8A89EF.8020805@austin.ibm.com> (raw)
In-Reply-To: <4C8A8937.9000005@austin.ibm.com>

Export the rtas_ibm_suspend_me() routine.  This is needed to perform
partition migration in the kernel.

Signed-off-by: Nathan Fontenot <nfont@austin.ibm.com>
---
 arch/powerpc/include/asm/rtas.h |    1 +
 arch/powerpc/kernel/rtas.c      |    4 ++--
 2 files changed, 3 insertions(+), 2 deletions(-)

Index: linux-next/arch/powerpc/include/asm/rtas.h
===================================================================
--- linux-next.orig/arch/powerpc/include/asm/rtas.h	2010-09-10 12:38:28.000000000 -0500
+++ linux-next/arch/powerpc/include/asm/rtas.h	2010-09-10 12:40:14.000000000 -0500
@@ -187,6 +187,7 @@ extern void rtas_progress(char *s, unsig
 extern void rtas_initialize(void);
 extern int rtas_suspend_cpu(struct rtas_suspend_me_data *data);
 extern int rtas_suspend_last_cpu(struct rtas_suspend_me_data *data);
+extern int rtas_ibm_suspend_me(struct rtas_args *);
 
 struct rtc_time;
 extern unsigned long rtas_get_boot_time(void);
Index: linux-next/arch/powerpc/kernel/rtas.c
===================================================================
--- linux-next.orig/arch/powerpc/kernel/rtas.c	2010-09-10 12:38:28.000000000 -0500
+++ linux-next/arch/powerpc/kernel/rtas.c	2010-09-10 12:41:01.000000000 -0500
@@ -805,7 +805,7 @@ static void rtas_percpu_suspend_me(void
 	__rtas_suspend_cpu((struct rtas_suspend_me_data *)info, 1);
 }
 
-static int rtas_ibm_suspend_me(struct rtas_args *args)
+int rtas_ibm_suspend_me(struct rtas_args *args)
 {
 	long state;
 	long rc;
@@ -855,7 +855,7 @@ static int rtas_ibm_suspend_me(struct rt
 	return atomic_read(&data.error);
 }
 #else /* CONFIG_PPC_PSERIES */
-static int rtas_ibm_suspend_me(struct rtas_args *args)
+int rtas_ibm_suspend_me(struct rtas_args *args)
 {
 	return -ENOSYS;
 }

  parent reply	other threads:[~2010-09-10 19:41 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-10 19:38 [PATCH 0/3] Enable partition migration in the kernel Nathan Fontenot
2010-09-10 19:40 ` [PATCH 1/3] Export pseries device tree updating routines Nathan Fontenot
2010-09-10 19:41 ` Nathan Fontenot [this message]
2010-09-10 19:42 ` [PATCH 3/3] Partition migration in the kernel Nathan Fontenot

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4C8A89EF.8020805@austin.ibm.com \
    --to=nfont@austin.ibm.com \
    --cc=linuxppc-dev@ozlabs.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).