Sfoglia il codice sorgente

[MIPS] SMTC: Use current_cpu_data instead of cpu_data[smp_processor_id]

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Ralf Baechle 18 anni fa
parent
commit
8f8771a057
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      arch/mips/kernel/smtc.c

+ 1 - 1
arch/mips/kernel/smtc.c

@@ -1104,7 +1104,7 @@ void smtc_idle_loop_hook(void)
 	mtflags = dmt();
 	mtflags = dmt();
 	pdb_msg = &id_ho_db_msg[0];
 	pdb_msg = &id_ho_db_msg[0];
 	im = read_c0_status();
 	im = read_c0_status();
-	vpe = cpu_data[smp_processor_id()].vpe_id;
+	vpe = current_cpu_data.vpe_id;
 	for (bit = 0; bit < 8; bit++) {
 	for (bit = 0; bit < 8; bit++) {
 		/*
 		/*
 		 * In current prototype, I/O interrupts
 		 * In current prototype, I/O interrupts