From 6766f89d034d8e371159119e6f803147b709ce1a Mon Sep 17 00:00:00 2001 From: Andy Green Date: Wed, 19 Nov 2008 17:10:02 +0000 Subject: tracking-2.6.27-rc1-s3c_lookup_cpu-mismatch.patch Signed-off-by: Andy Green --- arch/arm/plat-s3c24xx/cpu.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'arch/arm/plat-s3c24xx/cpu.c') diff --git a/arch/arm/plat-s3c24xx/cpu.c b/arch/arm/plat-s3c24xx/cpu.c index c340cb43f18..8d8cb268740 100644 --- a/arch/arm/plat-s3c24xx/cpu.c +++ b/arch/arm/plat-s3c24xx/cpu.c @@ -170,6 +170,24 @@ static struct map_desc s3c_iodesc[] __initdata = { }; /* read cpu identificaiton code */ +static struct cpu_table * __init +s3c_lookup_cpu(unsigned long idcode) +{ + struct cpu_table *tab; + int count; + + tab = cpu_ids; + for (count = 0; count < ARRAY_SIZE(cpu_ids); count++, tab++) { + if ((idcode & tab->idmask) == tab->idcode) + return tab; + } + + return NULL; +} + +/* cpu information */ + +static struct cpu_table *cpu; static unsigned long s3c24xx_read_idcode_v5(void) { -- cgit v1.2.3