Skip to content

Commit d8862be

Browse files
Nathan Fontenotozbenh
authored andcommitted
powerpc/pseries: Export rtas_ibm_suspend_me()
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> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
1 parent 2064897 commit d8862be

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

‎arch/powerpc/include/asm/rtas.h‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,7 @@ extern void rtas_progress(char *s, unsigned short hex);
187187
extern void rtas_initialize(void);
188188
extern int rtas_suspend_cpu(struct rtas_suspend_me_data *data);
189189
extern int rtas_suspend_last_cpu(struct rtas_suspend_me_data *data);
190+
extern int rtas_ibm_suspend_me(struct rtas_args *);
190191

191192
struct rtc_time;
192193
extern unsigned long rtas_get_boot_time(void);

‎arch/powerpc/kernel/rtas.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -805,7 +805,7 @@ static void rtas_percpu_suspend_me(void *info)
805805
__rtas_suspend_cpu((struct rtas_suspend_me_data *)info, 1);
806806
}
807807

808-
static int rtas_ibm_suspend_me(struct rtas_args *args)
808+
int rtas_ibm_suspend_me(struct rtas_args *args)
809809
{
810810
long state;
811811
long rc;
@@ -855,7 +855,7 @@ static int rtas_ibm_suspend_me(struct rtas_args *args)
855855
return atomic_read(&data.error);
856856
}
857857
#else /* CONFIG_PPC_PSERIES */
858-
static int rtas_ibm_suspend_me(struct rtas_args *args)
858+
int rtas_ibm_suspend_me(struct rtas_args *args)
859859
{
860860
return -ENOSYS;
861861
}

0 commit comments

Comments
 (0)