mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
[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 <[email protected]>
This commit is contained in:
parent
b8e6c91c74
commit
0ba8b9b273
18 changed files with 131 additions and 114 deletions
|
|
@ -174,10 +174,8 @@ static struct miscdevice ixp4xx_wdt_miscdev = {
|
|||
static int __init ixp4xx_wdt_init(void)
|
||||
{
|
||||
int ret;
|
||||
unsigned long processor_id;
|
||||
|
||||
asm("mrc p15, 0, %0, cr0, cr0, 0;" : "=r"(processor_id) :);
|
||||
if (!(processor_id & 0xf) && !cpu_is_ixp46x()) {
|
||||
if (!(read_cpuid_id() & 0xf) && !cpu_is_ixp46x()) {
|
||||
printk(KERN_ERR "IXP4XXX Watchdog: Rev. A0 IXP42x CPU detected"
|
||||
" - watchdog disabled\n");
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue