/* * linux/arch/arm/kernel/smp_scu.c * * Copyright (C) 2002 ARM Ltd. * All Rights Reserved * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. */ #include <linux/init.h> #include <linux/io.h> #include <asm/smp_plat.h> #include <asm/smp_scu.h> #include <asm/cacheflush.h> #include <asm/cputype.h> #define SCU_CTRL 0x00 #define SCU_ENABLE (1 << 0) #define SCU_STANDBY_ENABLE (1 << 5) #define SCU_CONFIG 0x04 #define SCU_CPU_STATUS 0x08 #define SCU_INVALIDATE 0x0c #define SCU_FPGA_REVISION 0x10 #ifdef CONFIG_SMP /* * Get the number of CPU cores from the SCU configuration */
unsigned int __init scu_get_core_count(void __iomem *scu_base) { unsigned int ncores = readl_relaxed(scu_base + SCU_CONFIG); return (ncores & 0x03) + 1; }Contributors
Person | Tokens | Prop | Commits | CommitProp |
Russell King | 31 | 96.88% | 1 | 50.00% |
Ben Dooks | 1 | 3.12% | 1 | 50.00% |
Total | 32 | 100.00% | 2 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Will Deacon | 44 | 36.67% | 1 | 12.50% |
Russell King | 32 | 26.67% | 1 | 12.50% |
Shawn Guo | 27 | 22.50% | 2 | 25.00% |
Catalin Marinas | 11 | 9.17% | 2 | 25.00% |
Ben Dooks | 4 | 3.33% | 1 | 12.50% |
Uwe Kleine-König | 2 | 1.67% | 1 | 12.50% |
Total | 120 | 100.00% | 8 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Russell King | 72 | 87.80% | 1 | 25.00% |
Rob Herring | 5 | 6.10% | 1 | 25.00% |
Will Deacon | 3 | 3.66% | 1 | 25.00% |
Ben Dooks | 2 | 2.44% | 1 | 25.00% |
Total | 82 | 100.00% | 4 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Russell King | 168 | 58.13% | 2 | 16.67% |
Will Deacon | 53 | 18.34% | 2 | 16.67% |
Shawn Guo | 35 | 12.11% | 2 | 16.67% |
Catalin Marinas | 14 | 4.84% | 2 | 16.67% |
Rob Herring | 10 | 3.46% | 2 | 16.67% |
Ben Dooks | 7 | 2.42% | 1 | 8.33% |
Uwe Kleine-König | 2 | 0.69% | 1 | 8.33% |
Total | 289 | 100.00% | 12 | 100.00% |