mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-09 12:17:12 +09:00
arm: rockchip: use read_cpuid_part instead of read_cpuid_part_number
Signed-off-by: Huang, Tao <huangtao@rock-chips.com>
This commit is contained in:
@@ -120,7 +120,7 @@ static int __init rockchip_pl330_l2_cache_init(void)
|
||||
void __iomem *base;
|
||||
u32 aux[2] = { 0, ~0 }, prefetch, power;
|
||||
|
||||
if (read_cpuid_part_number() != ARM_CPU_PART_CORTEX_A9)
|
||||
if (read_cpuid_part() != ARM_CPU_PART_CORTEX_A9)
|
||||
return -ENODEV;
|
||||
|
||||
np = of_find_compatible_node(NULL, NULL, "rockchip,pl310-cache");
|
||||
|
||||
@@ -43,7 +43,7 @@ static int __init rockchip_ca9_cpuidle_init(void)
|
||||
|
||||
if (!cpu_is_rockchip())
|
||||
return -ENODEV;
|
||||
if (read_cpuid_part_number() != ARM_CPU_PART_CORTEX_A9)
|
||||
if (read_cpuid_part() != ARM_CPU_PART_CORTEX_A9)
|
||||
return -ENODEV;
|
||||
np = of_find_compatible_node(NULL, NULL, "arm,cortex-a9-gic");
|
||||
if (!np)
|
||||
|
||||
@@ -97,7 +97,7 @@ static int __init rockchip_smp_prepare_bootram(void)
|
||||
}
|
||||
|
||||
/* set the boot function for the bootram code */
|
||||
if (read_cpuid_part_number() == ARM_CPU_PART_CORTEX_A9)
|
||||
if (read_cpuid_part() == ARM_CPU_PART_CORTEX_A9)
|
||||
rockchip_boot_fn = virt_to_phys(rockchip_a9_secondary_startup);
|
||||
else
|
||||
rockchip_boot_fn = virt_to_phys(secondary_startup);
|
||||
|
||||
Reference in New Issue
Block a user