Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 16560e88 authored by Michael Ellerman's avatar Michael Ellerman
Browse files

powerpc/pseries: Move smp_query_cpu_stopped() etc. out of plpar_wrappers.h



smp_query_cpu_stopped() and related #defines are currently in
plpar_wrappers.h. The function actually does an RTAS call, not an
hcall, and basically has nothing to do with plpar_wrappers.h

Move it into pseries.h, where it can easily be used by the only two
callers in pseries/smp.c and pseries/hotplug-cpu.c.

Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
parent e82d70cf
Loading
Loading
Loading
Loading
+0 −8
Original line number Diff line number Diff line
@@ -9,14 +9,6 @@
#include <asm/paca.h>
#include <asm/page.h>

/* Get state of physical CPU from query_cpu_stopped */
int smp_query_cpu_stopped(unsigned int pcpu);
#define QCSS_STOPPED 0
#define QCSS_STOPPING 1
#define QCSS_NOT_STOPPED 2
#define QCSS_HARDWARE_ERROR -1
#define QCSS_HARDWARE_BUSY -2

static inline long poll_pending(void)
{
	return plpar_hcall_norets(H_POLL_PENDING);
+8 −0
Original line number Diff line number Diff line
@@ -27,6 +27,14 @@ extern int pSeries_machine_check_exception(struct pt_regs *regs);

#ifdef CONFIG_SMP
extern void smp_init_pseries(void);

/* Get state of physical CPU from query_cpu_stopped */
int smp_query_cpu_stopped(unsigned int pcpu);
#define QCSS_STOPPED 0
#define QCSS_STOPPING 1
#define QCSS_NOT_STOPPED 2
#define QCSS_HARDWARE_ERROR -1
#define QCSS_HARDWARE_BUSY -2
#else
static inline void smp_init_pseries(void) { };
#endif