aboutsummaryrefslogtreecommitdiff
path: root/include/sbi
diff options
context:
space:
mode:
authorAnup Patel <apatel@ventanamicro.com>2023-09-01 21:41:48 +0530
committerAnup Patel <anup@brainfault.org>2023-09-24 11:41:54 +0530
commit22d6ff86750e0e40ff5966dc4671e2845b0536cb (patch)
treee2d15f38e0279a6fe367760ece25b11b8fdf8fb8 /include/sbi
parent78c667b6fc07d2ea783fbd18f43a3f8191de6164 (diff)
downloadopensbi-22d6ff86750e0e40ff5966dc4671e2845b0536cb.zip
opensbi-22d6ff86750e0e40ff5966dc4671e2845b0536cb.tar.gz
opensbi-22d6ff86750e0e40ff5966dc4671e2845b0536cb.tar.bz2
lib: sbi: Remove sbi_scratch_last_hartid() macro
The sbi_scratch_last_hartid() macro is not of much use on platforms with really sparse hartids so let us replace use of this macro with other approaches. Signed-off-by: Anup Patel <apatel@ventanamicro.com>
Diffstat (limited to 'include/sbi')
-rw-r--r--include/sbi/sbi_scratch.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/include/sbi/sbi_scratch.h b/include/sbi/sbi_scratch.h
index 9a4dce1..e6a33ba 100644
--- a/include/sbi/sbi_scratch.h
+++ b/include/sbi/sbi_scratch.h
@@ -244,12 +244,6 @@ u32 sbi_hartid_to_hartindex(u32 hartid);
#define sbi_hartid_to_scratch(__hartid) \
sbi_hartindex_to_scratch(sbi_hartid_to_hartindex(__hartid))
-/** Last HART id having a sbi_scratch pointer */
-extern u32 last_hartid_having_scratch;
-
-/** Get last HART id having a sbi_scratch pointer */
-#define sbi_scratch_last_hartid() last_hartid_having_scratch
-
/** Check whether particular HART id is valid or not */
#define sbi_hartid_valid(__hartid) \
sbi_hartindex_valid(sbi_hartid_to_hartindex(__hartid))