Release 4.11 arch/arm/include/asm/smp_scu.h
#ifndef __ASMARM_ARCH_SCU_H
#define __ASMARM_ARCH_SCU_H
#define SCU_PM_NORMAL 0
#define SCU_PM_DORMANT 2
#define SCU_PM_POWEROFF 3
#ifndef __ASSEMBLER__
#include <asm/cputype.h>
static inline bool scu_a9_has_base(void)
{
return read_cpuid_part() == ARM_CPU_PART_CORTEX_A9;
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Hiroshi Doyu | 14 | 93.33% | 1 | 50.00% |
Russell King | 1 | 6.67% | 1 | 50.00% |
Total | 15 | 100.00% | 2 | 100.00% |
static inline unsigned long scu_a9_get_base(void)
{
unsigned long pa;
asm("mrc p15, 4, %0, c15, c0, 0" : "=r" (pa));
return pa;
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Hiroshi Doyu | 18 | 100.00% | 1 | 100.00% |
Total | 18 | 100.00% | 1 | 100.00% |
#ifdef CONFIG_HAVE_ARM_SCU
unsigned int scu_get_core_count(void __iomem *);
int scu_power_mode(void __iomem *, unsigned int);
#else
static inline unsigned int scu_get_core_count(void __iomem *scu_base)
{
return 0;
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Nishanth Menon | 16 | 100.00% | 1 | 100.00% |
Total | 16 | 100.00% | 1 | 100.00% |
static inline int scu_power_mode(void __iomem *scu_base, unsigned int mode)
{
return -EINVAL;
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Nishanth Menon | 20 | 100.00% | 1 | 100.00% |
Total | 20 | 100.00% | 1 | 100.00% |
#endif
#if defined(CONFIG_SMP) && defined(CONFIG_HAVE_ARM_SCU)
void scu_enable(void __iomem *scu_base);
#else
static inline void scu_enable(void __iomem *scu_base) {}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Rob Herring | 11 | 100.00% | 1 | 100.00% |
Total | 11 | 100.00% | 1 | 100.00% |
#endif
#endif
#endif
Overall Contributors
Person | Tokens | Prop | Commits | CommitProp |
Nishanth Menon | 53 | 33.33% | 1 | 14.29% |
Russell King | 39 | 24.53% | 3 | 42.86% |
Hiroshi Doyu | 35 | 22.01% | 1 | 14.29% |
Rob Herring | 24 | 15.09% | 1 | 14.29% |
Catalin Marinas | 8 | 5.03% | 1 | 14.29% |
Total | 159 | 100.00% | 7 | 100.00% |
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.