brcm47xx: add fallback sprom for pci devices without an own sprom.
[openwrt.git] / target / linux / lantiq / patches / 010-mips_clocksource_init_war.patch
index 81eabc6..1670ccb 100644 (file)
@@ -1,6 +1,6 @@
 --- a/arch/mips/kernel/cevt-r4k.c
 +++ b/arch/mips/kernel/cevt-r4k.c
-@@ -22,6 +22,22 @@
+@@ -23,6 +23,22 @@
  
  #ifndef CONFIG_MIPS_MT_SMTC
  
  static int mips_next_event(unsigned long delta,
                             struct clock_event_device *evt)
  {
-@@ -31,6 +47,7 @@ static int mips_next_event(unsigned long
+@@ -32,6 +48,7 @@
        cnt = read_c0_count();
        cnt += delta;
        write_c0_compare(cnt);
 +      compare_change_hazard();
-       res = ((int)(read_c0_count() - cnt) > 0) ? -ETIME : 0;
+       res = ((int)(read_c0_count() - cnt) >= 0) ? -ETIME : 0;
        return res;
  }
This page took 0.023584 seconds and 4 git commands to generate.