xref: /linux/arch/powerpc/platforms/powernv/subcore.h (revision ca55b2fef3a9373fcfc30f82fd26bc7fccbda732)
1 /*
2  * Copyright 2013, Michael Ellerman, IBM Corporation.
3  *
4  * This program is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU General Public License
6  * as published by the Free Software Foundation; either version
7  * 2 of the License, or (at your option) any later version.
8  */
9 
10 /* These are ordered and tested with <= */
11 #define SYNC_STEP_INITIAL	0
12 #define SYNC_STEP_UNSPLIT	1	/* Set by secondary when it sees unsplit */
13 #define SYNC_STEP_REAL_MODE	2	/* Set by secondary when in real mode  */
14 #define SYNC_STEP_FINISHED	3	/* Set by secondary when split/unsplit is done */
15 
16 #ifndef __ASSEMBLY__
17 
18 #ifdef CONFIG_SMP
19 void split_core_secondary_loop(u8 *state);
20 extern void update_subcore_sibling_mask(void);
21 #else
22 static inline void update_subcore_sibling_mask(void) { };
23 #endif /* CONFIG_SMP */
24 
25 #endif /* __ASSEMBLY__ */
26