subcore.h 857 B

1234567891011121314151617181920212223242526
  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. /* These are ordered and tested with <= */
  10. #define SYNC_STEP_INITIAL 0
  11. #define SYNC_STEP_UNSPLIT 1 /* Set by secondary when it sees unsplit */
  12. #define SYNC_STEP_REAL_MODE 2 /* Set by secondary when in real mode */
  13. #define SYNC_STEP_FINISHED 3 /* Set by secondary when split/unsplit is done */
  14. #ifndef __ASSEMBLY__
  15. #ifdef CONFIG_SMP
  16. void split_core_secondary_loop(u8 *state);
  17. extern void update_subcore_sibling_mask(void);
  18. #else
  19. static inline void update_subcore_sibling_mask(void) { };
  20. #endif /* CONFIG_SMP */
  21. #endif /* __ASSEMBLY__ */