mcpm.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /*
  2. * arch/arm/include/asm/mcpm.h
  3. *
  4. * Created by: Nicolas Pitre, April 2012
  5. * Copyright: (C) 2012-2013 Linaro Limited
  6. *
  7. * This program is free software; you can redistribute it and/or modify
  8. * it under the terms of the GNU General Public License version 2 as
  9. * published by the Free Software Foundation.
  10. */
  11. #ifndef MCPM_H
  12. #define MCPM_H
  13. /*
  14. * Maximum number of possible clusters / CPUs per cluster.
  15. *
  16. * This should be sufficient for quite a while, while keeping the
  17. * (assembly) code simpler. When this starts to grow then we'll have
  18. * to consider dynamic allocation.
  19. */
  20. #define MAX_CPUS_PER_CLUSTER 4
  21. #define MAX_NR_CLUSTERS 2
  22. #ifndef __ASSEMBLY__
  23. /*
  24. * Platform specific code should use this symbol to set up secondary
  25. * entry location for processors to use when released from reset.
  26. */
  27. extern void mcpm_entry_point(void);
  28. /*
  29. * This is used to indicate where the given CPU from given cluster should
  30. * branch once it is ready to re-enter the kernel using ptr, or NULL if it
  31. * should be gated. A gated CPU is held in a WFE loop until its vector
  32. * becomes non NULL.
  33. */
  34. void mcpm_set_entry_vector(unsigned cpu, unsigned cluster, void *ptr);
  35. #endif /* ! __ASSEMBLY__ */
  36. #endif