aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/x86/patches-5.4/100-fix_cs5535_clockevt.patch
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@hauke-m.de>2020-02-23 14:55:25 +0100
committerKoen Vandeputte <koen.vandeputte@ncentric.com>2020-02-28 17:50:46 +0100
commit5af55933e063c01f64bba78f352e95b978a47cc1 (patch)
tree8239d5dd1cf11e3eb0acc7ac1e68ace141a9c35c /target/linux/x86/patches-5.4/100-fix_cs5535_clockevt.patch
parent4e0c54bc5bc8381e031af5147b66b4dadeecc626 (diff)
downloadupstream-5af55933e063c01f64bba78f352e95b978a47cc1.tar.gz
upstream-5af55933e063c01f64bba78f352e95b978a47cc1.tar.bz2
upstream-5af55933e063c01f64bba78f352e95b978a47cc1.zip
x86: copy kernel patches from 4.19 to 5.4
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Diffstat (limited to 'target/linux/x86/patches-5.4/100-fix_cs5535_clockevt.patch')
-rw-r--r--target/linux/x86/patches-5.4/100-fix_cs5535_clockevt.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/target/linux/x86/patches-5.4/100-fix_cs5535_clockevt.patch b/target/linux/x86/patches-5.4/100-fix_cs5535_clockevt.patch
new file mode 100644
index 0000000000..c3a7fce9ce
--- /dev/null
+++ b/target/linux/x86/patches-5.4/100-fix_cs5535_clockevt.patch
@@ -0,0 +1,12 @@
+--- a/drivers/clocksource/cs5535-clockevt.c
++++ b/drivers/clocksource/cs5535-clockevt.c
+@@ -130,7 +130,8 @@ static irqreturn_t mfgpt_tick(int irq, v
+ cs5535_mfgpt_write(cs5535_event_clock, MFGPT_REG_SETUP,
+ MFGPT_SETUP_CNTEN | MFGPT_SETUP_CMP2);
+
+- cs5535_clockevent.event_handler(&cs5535_clockevent);
++ if (cs5535_clockevent.event_handler)
++ cs5535_clockevent.event_handler(&cs5535_clockevent);
+ return IRQ_HANDLED;
+ }
+