Skip to content

Commit 0925367

Browse files
committed
scsi: lpfc: Use topology_core_id()
Use the provided topology helper. Signed-off-by: Thomas Gleixner <[email protected]> Tested-by: Juergen Gross <[email protected]> Tested-by: Sohil Mehta <[email protected]> Tested-by: Michael Kelley <[email protected]> Tested-by: Peter Zijlstra (Intel) <[email protected]> Tested-by: Zhang Rui <[email protected]> Acked-by: Peter Zijlstra (Intel) <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 8a169ed commit 0925367

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/scsi/lpfc/lpfc_init.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12456,7 +12456,7 @@ lpfc_cpu_affinity_check(struct lpfc_hba *phba, int vectors)
1245612456
cpup = &phba->sli4_hba.cpu_map[cpu];
1245712457
#ifdef CONFIG_X86
1245812458
cpup->phys_id = topology_physical_package_id(cpu);
12459-
cpup->core_id = cpuinfo->cpu_core_id;
12459+
cpup->core_id = topology_core_id(cpu);
1246012460
if (lpfc_find_hyper(phba, cpu, cpup->phys_id, cpup->core_id))
1246112461
cpup->flag |= LPFC_CPU_MAP_HYPER;
1246212462
#else

0 commit comments

Comments
 (0)