Skip to content

Commit

Permalink
[ARM] 3553/1: S3C24XX: earlier print of cpu idcode info
Browse files Browse the repository at this point in the history
Patch from Ben Dooks

Move the printk of the CPU information and IDCODE
before the checking of the table entry validity
to aide in debugging new cpu entries.

Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
  • Loading branch information
Ben Dooks authored and Russell King committed Jun 18, 2006
1 parent 68d5969 commit 36fe6a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/arm/mach-s3c2410/cpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -175,13 +175,13 @@ void __init s3c24xx_init_io(struct map_desc *mach_desc, int size)
panic("Unknown S3C24XX CPU");
}

printk("CPU %s (id 0x%08lx)\n", cpu->name, idcode);

if (cpu->map_io == NULL || cpu->init == NULL) {
printk(KERN_ERR "CPU %s support not enabled\n", cpu->name);
panic("Unsupported S3C24XX CPU");
}

printk("CPU %s (id 0x%08lx)\n", cpu->name, idcode);

(cpu->map_io)(mach_desc, size);
}

Expand Down

0 comments on commit 36fe6a8

Please sign in to comment.