/* * Copyright (C) STMicroelectronics 2009 * Copyright (C) ST-Ericsson SA 2010 * * License Terms: GNU General Public License v2 * Based on ARM realview platform * * Author: Sundar Iyer <sundar.iyer@stericsson.com> * */ #include <linux/kernel.h> #include <linux/errno.h> #include <linux/smp.h> #include <asm/smp_plat.h> #include "setup.h" /* * platform-specific code to shutdown a CPU * * Called with IRQs disabled */
void ux500_cpu_die(unsigned int cpu) { /* directly enter low power state, skipping secure registers */ for (;;) { __asm__ __volatile__("dsb\n\t" "wfi\n\t" : : : "memory"); if (pen_release == cpu_logical_map(cpu)) { /* * OK, proper wakeup, we're done */ break; } } }Contributors
Person | Tokens | Prop | Commits | CommitProp | |
sundar iyer | sundar iyer | 28 | 84.85% | 1 | 33.33% |
will deacon | will deacon | 3 | 9.09% | 1 | 33.33% |
marc zyngier | marc zyngier | 2 | 6.06% | 1 | 33.33% |
Total | 33 | 100.00% | 3 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp | |
sundar iyer | sundar iyer | 40 | 80.00% | 1 | 20.00% |
marc zyngier | marc zyngier | 5 | 10.00% | 1 | 20.00% |
will deacon | will deacon | 4 | 8.00% | 2 | 40.00% |
arnd bergmann | arnd bergmann | 1 | 2.00% | 1 | 20.00% |
Total | 50 | 100.00% | 5 | 100.00% |