mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
The cpu_id macro was renamed in r278529, catch up with this new name.
This commit is contained in:
parent
b48e3e7365
commit
90e8f62386
2 changed files with 2 additions and 2 deletions
|
|
@ -285,7 +285,7 @@ unit2npeid(int unit)
|
|||
};
|
||||
/* XXX check feature register instead */
|
||||
return (unit < 3 ? npeidmap[
|
||||
(cpu_id() & CPU_ID_CPU_MASK) == CPU_ID_IXP435][unit] : -1);
|
||||
(cpu_ident() & CPU_ID_CPU_MASK) == CPU_ID_IXP435][unit] : -1);
|
||||
}
|
||||
|
||||
static int
|
||||
|
|
|
|||
|
|
@ -555,7 +555,7 @@ armv7_pcpu_init(struct pmc_mdep *md, int cpu)
|
|||
armv7_pcpu[cpu] = pac = malloc(sizeof(struct armv7_cpu), M_PMC,
|
||||
M_WAITOK|M_ZERO);
|
||||
|
||||
cpuid = cpu_id();
|
||||
cpuid = cpu_ident();
|
||||
pac->cortex_ver = (cpuid >> CPU_ID_CORTEX_VER_SHIFT) & \
|
||||
CPU_ID_CORTEX_VER_MASK;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue