realtek: use upstream recommendation for secondary CPU start
[openwrt/staging/ldir.git] / target / linux / realtek / patches-5.10 / 309-cevt-rtl9300-support.patch
index 6a0038d86bb22608dc32679dfffed1c286cae89b..2b9102633ee21ab5f950e933b06cf8032154007a 100644 (file)
  #ifdef CONFIG_CEVT_R4K
        return r4k_clockevent_init();
  #else
---- a/arch/mips/kernel/smp-mt.c
-+++ b/arch/mips/kernel/smp-mt.c
-@@ -108,12 +108,18 @@ static void __init smvp_tc_init(unsigned
- static void vsmp_init_secondary(void)
- {
-       /* This is Malta specific: IPI,performance and timer interrupts */
-+
-+      /* RTL9300 Clear internal timer interrupt */
-+      write_c0_compare(0);
-+
-       if (mips_gic_present())
-               change_c0_status(ST0_IM, STATUSF_IP2 | STATUSF_IP3 |
-                                        STATUSF_IP4 | STATUSF_IP5 |
-                                        STATUSF_IP6 | STATUSF_IP7);
-       else
-               change_c0_status(ST0_IM, STATUSF_IP0 | STATUSF_IP1 |
-+                                       STATUSF_IP2 | STATUSF_IP3 |
-+                                       STATUSF_IP4 | STATUSF_IP5 |
-                                        STATUSF_IP6 | STATUSF_IP7);
- }