Message ID | 43ccebf0893885450083075ec985bac89d88532e.1630667612.git.christophe.leroy@csgroup.eu (mailing list archive) |
---|---|
State | RFC |
Headers | show |
Series | powerpc/machdep: Remove dust and convert to static calls | expand |
diff --git a/arch/powerpc/include/asm/machdep.h b/arch/powerpc/include/asm/machdep.h index 9f31281095ab..51949ab0abfe 100644 --- a/arch/powerpc/include/asm/machdep.h +++ b/arch/powerpc/include/asm/machdep.h @@ -203,6 +203,11 @@ struct machdep_calls { #endif }; +#define ppc_md_call(func) ppc_md.func +#define ppc_md_has(func) (ppc_md.func) +#define ppc_md_call_cond(func) if (ppc_md_has(func)) ppc_md_call(func) +#define ppc_md_update(func, f) ppc_md.func = f + extern void e500_idle(void); extern void power4_idle(void); extern void ppc6xx_idle(void);
As a preparation to converting ppc_md functions to static calls, add helpers to play with ppc_md. functions. Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu> --- arch/powerpc/include/asm/machdep.h | 5 +++++ 1 file changed, 5 insertions(+)