RISC-V: Use a local variable instead of smp_processor_id()
authorGreentime Hu <greentime.hu@sifive.com>
Mon, 22 Jun 2020 23:47:25 +0000 (16:47 -0700)
committerPalmer Dabbelt <palmerdabbelt@google.com>
Mon, 29 Jun 2020 22:23:28 +0000 (15:23 -0700)
commita2693fe254e77055cb80571fa2d723021dd3aa1d
treea2eec03282e4988814f8708c3bc0e1e3178d95eb
parent234e9d7a6200952264002b9ba808e7dfc559b0b2
RISC-V: Use a local variable instead of smp_processor_id()

Store the smp_processor_id() in a local variable to save some
pointer chasing.

Signed-off-by: Greentime Hu <greentime.hu@sifive.com>
Signed-off-by: Atish Patra <atish.patra@wdc.com>
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
arch/riscv/kernel/smpboot.c