diff options
author | John Crispin <john@openwrt.org> | 2011-02-01 14:35:36 +0000 |
---|---|---|
committer | John Crispin <john@openwrt.org> | 2011-02-01 14:35:36 +0000 |
commit | e919bd002a7f08d1c893dc3272f1f6332442fc35 (patch) | |
tree | bf2e28836e52b2a82972c338cc244dd12a034fef /target/linux/ifxmips/patches/010-mips_clocksource_init_war.patch | |
parent | 61527e0b529fa012fc181f64bf3d3a5c48a9cb33 (diff) | |
download | master-31e0f0ae-e919bd002a7f08d1c893dc3272f1f6332442fc35.tar.gz master-31e0f0ae-e919bd002a7f08d1c893dc3272f1f6332442fc35.tar.bz2 master-31e0f0ae-e919bd002a7f08d1c893dc3272f1f6332442fc35.zip |
* drop codebase in favour of lantiq target
SVN-Revision: 25277
Diffstat (limited to 'target/linux/ifxmips/patches/010-mips_clocksource_init_war.patch')
-rw-r--r-- | target/linux/ifxmips/patches/010-mips_clocksource_init_war.patch | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/target/linux/ifxmips/patches/010-mips_clocksource_init_war.patch b/target/linux/ifxmips/patches/010-mips_clocksource_init_war.patch deleted file mode 100644 index 81eabc6dcd..0000000000 --- a/target/linux/ifxmips/patches/010-mips_clocksource_init_war.patch +++ /dev/null @@ -1,33 +0,0 @@ ---- a/arch/mips/kernel/cevt-r4k.c -+++ b/arch/mips/kernel/cevt-r4k.c -@@ -22,6 +22,22 @@ - - #ifndef CONFIG_MIPS_MT_SMTC - -+/* -+ * Compare interrupt can be routed and latched outside the core, -+ * so a single execution hazard barrier may not be enough to give -+ * it time to clear as seen in the Cause register. 4 time the -+ * pipeline depth seems reasonably conservative, and empirically -+ * works better in configurations with high CPU/bus clock ratios. -+ */ -+ -+#define compare_change_hazard() \ -+ do { \ -+ irq_disable_hazard(); \ -+ irq_disable_hazard(); \ -+ irq_disable_hazard(); \ -+ irq_disable_hazard(); \ -+ } while (0) -+ - static int mips_next_event(unsigned long delta, - struct clock_event_device *evt) - { -@@ -31,6 +47,7 @@ static int mips_next_event(unsigned long - cnt = read_c0_count(); - cnt += delta; - write_c0_compare(cnt); -+ compare_change_hazard(); - res = ((int)(read_c0_count() - cnt) > 0) ? -ETIME : 0; - return res; - } |