platsmp-apmu.h 1.0 KB

123456789101112131415161718192021222324252627282930313233
  1. /*
  2. * rmobile apmu definition
  3. *
  4. * Copyright (C) 2014 Renesas Electronics Corporation
  5. *
  6. * This program is free software; you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License as published by
  8. * the Free Software Foundation; version 2 of the License.
  9. *
  10. * This program is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. * GNU General Public License for more details.
  14. */
  15. #ifndef PLATSMP_APMU_H
  16. #define PLATSMP_APMU_H
  17. struct rcar_apmu_config {
  18. struct resource iomem;
  19. int cpus[4];
  20. };
  21. extern void shmobile_smp_apmu_prepare_cpus(unsigned int max_cpus,
  22. struct rcar_apmu_config *apmu_config,
  23. int num);
  24. extern int shmobile_smp_apmu_boot_secondary(unsigned int cpu,
  25. struct task_struct *idle);
  26. extern void shmobile_smp_apmu_cpu_die(unsigned int cpu);
  27. extern int shmobile_smp_apmu_cpu_kill(unsigned int cpu);
  28. #endif /* PLATSMP_APMU_H */