diff options
author | Sander Vanheule <sander@svanheule.net> | 2022-10-01 09:55:01 +0200 |
---|---|---|
committer | Sander Vanheule <sander@svanheule.net> | 2022-10-01 09:56:54 +0200 |
commit | 918e77465868fc4878ec27826dfc11ba0272f75e (patch) | |
tree | 1c63900d1a0201635a77b095c06b95aac7062459 /target/linux/realtek | |
parent | b7aab1958591e62900e0275bc9cd80d10a4f9f53 (diff) | |
download | upstream-918e77465868fc4878ec27826dfc11ba0272f75e.tar.gz upstream-918e77465868fc4878ec27826dfc11ba0272f75e.tar.bz2 upstream-918e77465868fc4878ec27826dfc11ba0272f75e.zip |
realtek: use correct CAUSEF_DC macro in prom.c
The workaround for an already-enabled R4K timer used a non-existent
macro CAUSE_DC. Fix compiling by using the actual macro CAUSEF_DC.
Fixes: b7aab1958591 ("realtek: SMP handling of R4K timer interrupts")
Signed-off-by: Sander Vanheule <sander@svanheule.net>
Diffstat (limited to 'target/linux/realtek')
-rw-r--r-- | target/linux/realtek/files-5.10/arch/mips/rtl838x/prom.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target/linux/realtek/files-5.10/arch/mips/rtl838x/prom.c b/target/linux/realtek/files-5.10/arch/mips/rtl838x/prom.c index 24e4bfc568..1428c01a33 100644 --- a/target/linux/realtek/files-5.10/arch/mips/rtl838x/prom.c +++ b/target/linux/realtek/files-5.10/arch/mips/rtl838x/prom.c @@ -43,7 +43,7 @@ static void rtl_init_secondary(void) * handler that leads to continuous unhandeled interrupts. In this case disable * counting (DC) in the core and confirm a pending interrupt. */ - write_c0_cause(read_c0_cause() | CAUSE_DC); + write_c0_cause(read_c0_cause() | CAUSEF_DC); write_c0_compare(0); #endif /* CONFIG_CEVT_R4K */ /* |