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>
This commit is contained in:
Greentime Hu 2020-06-22 16:47:25 -07:00 • committed by Palmer Dabbelt
commit a2693fe254
No known key found for this signature in database
GPG key ID: 2E1319F35FBB1889