Commit ac98c2ff authored by Seblu's avatar Seblu
Browse files
parent deb52340
Loading
Loading
Loading
Loading
Loading

01-fix-iTCO_wdt.patch

0 → 100644
+20 −0
Original line number Diff line number Diff line
---
 drivers/watchdog/iTCO_wdt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/watchdog/iTCO_wdt.c b/drivers/watchdog/iTCO_wdt.c
index b3f604669e2c..643c6c2d0b72 100644
--- a/drivers/watchdog/iTCO_wdt.c
+++ b/drivers/watchdog/iTCO_wdt.c
@@ -362,7 +362,7 @@ static int iTCO_wdt_set_timeout(struct watchdog_device *wd_dev, unsigned int t)
 	 * Otherwise, the BIOS generally reboots when the SMI triggers.
 	 */
 	if (p->smi_res &&
-	    (SMI_EN(p) & (TCO_EN | GBL_SMI_EN)) != (TCO_EN | GBL_SMI_EN))
+	    (inl(SMI_EN(p)) & (TCO_EN | GBL_SMI_EN)) != (TCO_EN | GBL_SMI_EN))
 		tmrval /= 2;
 
 	/* from the specs: */
-- 
2.26.2
+5 −3
Original line number Diff line number Diff line
@@ -3,7 +3,7 @@

pkgname=linux-seblu
pkgver=5.14.3
pkgrel=1
pkgrel=2
pkgdesc='The Linux Kernel cooked by Seblu'
arch=('x86_64')
license=('GPL2')
@@ -19,9 +19,11 @@ install=linux-seblu.install
_main=https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
_stable=https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git
source=("git+$_stable#tag=v5.14.3"
        "config.$CARCH")
        "config.$CARCH"
        '01-fix-iTCO_wdt.patch')
sha256sums=('SKIP'
            'd01a75e4182dced3670fefab0f21c28f787221cdbcf3185c5c2d7f4731f88188')
            'd01a75e4182dced3670fefab0f21c28f787221cdbcf3185c5c2d7f4731f88188'
            '5486d3097e9cf096f128b5338354e122697bb6387187a21bbc4b808d47d94bea')

prepare() {
  [[ -d linux-stable ]] && ln -snf linux-stable linux