[ARM] cputype: separate definitions, use them
Add asm/cputype.h, moving functions and definitions from asm/system.h there. Convert all users of 'processor_id' to the more efficient read_cpuid_id() function. Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
This commit is contained in:

committad av
Russell King

förälder
b8e6c91c74
incheckning
0ba8b9b273
@@ -88,6 +88,8 @@
|
||||
#include <linux/init.h>
|
||||
#include <linux/cpufreq.h>
|
||||
|
||||
#include <asm/cputype.h>
|
||||
|
||||
#include <mach/hardware.h>
|
||||
|
||||
#include "generic.h"
|
||||
@@ -240,7 +242,7 @@ static struct cpufreq_driver sa1100_driver = {
|
||||
|
||||
static int __init sa1100_dram_init(void)
|
||||
{
|
||||
if ((processor_id & CPU_SA1100_MASK) == CPU_SA1100_ID)
|
||||
if (cpu_is_sa1100())
|
||||
return cpufreq_register_driver(&sa1100_driver);
|
||||
else
|
||||
return -ENODEV;
|
||||
|
Referens i nytt ärende
Block a user