include: Make sbi_hart_id_to_scratch() as macro
authorAnup Patel <anup.patel@wdc.com>
Wed, 11 Mar 2020 13:38:08 +0000 (19:08 +0530)
committerAnup Patel <anup@brainfault.org>
Fri, 13 Mar 2020 06:48:07 +0000 (12:18 +0530)
commitf92147c2b2fd01bd32debe4d6cb0375705dceeac
treefc13e8112f70b8788a5d0352fc35f97796ecfc2e
parentbaac7e066d1d1eabffa7f40ab7414c23b38b9fae
include: Make sbi_hart_id_to_scratch() as macro

The sbi_hart_id_to_scratch() just forwards call to firmware specific
hartid_to_scratch() callback so we make sbi_hart_id_to_scratch() as
macro in sbi_scratch.h instead of regular function in sbi_hart.c.

Signed-off-by: Anup Patel <anup.patel@wdc.com>
Reviewed-by: Atish Patra <atish.patra@wdc.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
include/sbi/sbi_hart.h
include/sbi/sbi_scratch.h
lib/sbi/sbi_hart.c