summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKyösti Mälkki <kyosti.malkki@gmail.com>2019-09-13 07:20:38 +0300
committerKyösti Mälkki <kyosti.malkki@gmail.com>2019-09-14 10:55:55 +0000
commitcf49dec4deb5c368ad52a68b4ecb25129694751f (patch)
tree91dd12c0780aaa060fcb538d20314da59e02e30e /src
parent2491d790d2eacf688ac75aeebc32964658feb02e (diff)
downloadcoreboot-cf49dec4deb5c368ad52a68b4ecb25129694751f.tar.xz
cpu/x86: Drop lapic_remote_read()
Unused and declaration conflicts with the one amdfam10-15 uses in romstage. Change-Id: Icd454431285b7c423a4f78d2a0085497d052adc9 Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/35394 Reviewed-by: Aaron Durbin <adurbin@chromium.org> Reviewed-by: Furquan Shaikh <furquan@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src')
-rw-r--r--src/include/cpu/x86/lapic.h24
1 files changed, 0 insertions, 24 deletions
diff --git a/src/include/cpu/x86/lapic.h b/src/include/cpu/x86/lapic.h
index 8108174ecd..2f40742e03 100644
--- a/src/include/cpu/x86/lapic.h
+++ b/src/include/cpu/x86/lapic.h
@@ -113,30 +113,6 @@ static inline void lapic_write_atomic(unsigned long reg, unsigned long v)
# define lapic_write_around(x, y) lapic_write_atomic((x), (y))
#endif
-static inline int lapic_remote_read(int apicid, int reg, unsigned long *pvalue)
-{
- int timeout;
- unsigned long status;
- int result;
- lapic_wait_icr_idle();
- lapic_write_around(LAPIC_ICR2, SET_LAPIC_DEST_FIELD(apicid));
- lapic_write_around(LAPIC_ICR, LAPIC_DM_REMRD | (reg >> 4));
- timeout = 0;
- do {
-#if 0
- udelay(100);
-#endif
- status = lapic_read(LAPIC_ICR) & LAPIC_ICR_RR_MASK;
- } while (status == LAPIC_ICR_RR_INPROG && timeout++ < 1000);
-
- result = -1;
- if (status == LAPIC_ICR_RR_VALID) {
- *pvalue = lapic_read(LAPIC_RRR);
- result = 0;
- }
- return result;
-}
-
void do_lapic_init(void);
/* See if I need to initialize the local APIC */