From: Alexander Sverdlin <alexander.sverdlin@nokia.com> To: linux-edac@vger.kernel.org Cc: Dewet Thibaut <thibaut.dewet@nokia.com>, Tony Luck <tony.luck@intel.com>, Borislav Petkov <bp@alien8.de>, Thomas Gleixner <tglx@linutronix.de>, Ingo Molnar <mingo@redhat.com>, "H. Peter Anvin" <hpa@zytor.com>, x86@kernel.org, stable@vger.kernel.org, Alexander Sverdlin <alexander.sverdlin@nokia.com> Subject: x86/MCE: Remove min interval limitation Date: Mon, 16 Jul 2018 10:49:27 +0200 [thread overview] Message-ID: <20180716084927.24869-1-alexander.sverdlin@nokia.com> (raw) From: Dewet Thibaut <thibaut.dewet@nokia.com> Previously the min interval limitation (one second) has been introduced. In this case it was no longer possible to disable the machine check. This patch removes this limitation and allows the value 0 again. Cc: stable@vger.kernel.org Fixes: b3b7c4795c ("x86/MCE: Serialize sysfs changes") Signed-off-by: Dewet Thibaut <thibaut.dewet@nokia.com> Signed-off-by: Alexander Sverdlin <alexander.sverdlin@nokia.com> --- arch/x86/kernel/cpu/mcheck/mce.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/arch/x86/kernel/cpu/mcheck/mce.c b/arch/x86/kernel/cpu/mcheck/mce.c index c102ad51025e..8c50754c09c1 100644 --- a/arch/x86/kernel/cpu/mcheck/mce.c +++ b/arch/x86/kernel/cpu/mcheck/mce.c @@ -2165,9 +2165,6 @@ static ssize_t store_int_with_restart(struct device *s, if (check_interval == old_check_interval) return ret; - if (check_interval < 1) - check_interval = 1; - mutex_lock(&mce_sysfs_mutex); mce_restart(); mutex_unlock(&mce_sysfs_mutex);
WARNING: multiple messages have this Message-ID (diff)
From: Alexander Sverdlin <alexander.sverdlin@nokia.com> To: linux-edac@vger.kernel.org Cc: Dewet Thibaut <thibaut.dewet@nokia.com>, Tony Luck <tony.luck@intel.com>, Borislav Petkov <bp@alien8.de>, Thomas Gleixner <tglx@linutronix.de>, Ingo Molnar <mingo@redhat.com>, "H. Peter Anvin" <hpa@zytor.com>, x86@kernel.org, stable@vger.kernel.org, Alexander Sverdlin <alexander.sverdlin@nokia.com> Subject: [PATCH] x86/MCE: Remove min interval limitation Date: Mon, 16 Jul 2018 10:49:27 +0200 [thread overview] Message-ID: <20180716084927.24869-1-alexander.sverdlin@nokia.com> (raw) From: Dewet Thibaut <thibaut.dewet@nokia.com> Previously the min interval limitation (one second) has been introduced. In this case it was no longer possible to disable the machine check. This patch removes this limitation and allows the value 0 again. Cc: stable@vger.kernel.org Fixes: b3b7c4795c ("x86/MCE: Serialize sysfs changes") Signed-off-by: Dewet Thibaut <thibaut.dewet@nokia.com> Signed-off-by: Alexander Sverdlin <alexander.sverdlin@nokia.com> --- arch/x86/kernel/cpu/mcheck/mce.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/arch/x86/kernel/cpu/mcheck/mce.c b/arch/x86/kernel/cpu/mcheck/mce.c index c102ad51025e..8c50754c09c1 100644 --- a/arch/x86/kernel/cpu/mcheck/mce.c +++ b/arch/x86/kernel/cpu/mcheck/mce.c @@ -2165,9 +2165,6 @@ static ssize_t store_int_with_restart(struct device *s, if (check_interval == old_check_interval) return ret; - if (check_interval < 1) - check_interval = 1; - mutex_lock(&mce_sysfs_mutex); mce_restart(); mutex_unlock(&mce_sysfs_mutex); -- 2.18.0
next reply other threads:[~2018-07-16 8:49 UTC|newest] Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top 2018-07-16 8:49 Alexander Sverdlin [this message] 2018-07-16 8:49 ` [PATCH] x86/MCE: Remove min interval limitation Alexander Sverdlin 2018-07-17 14:54 ` [tip:x86/urgent] x86/MCE: Remove min interval polling limitation tip-bot for Dewet Thibaut 2018-07-17 14:54 ` tip-bot for Borislav Petkov 2018-07-17 16:00 ` tip-bot for Dewet Thibaut 2018-07-17 16:00 ` tip-bot for Borislav Petkov
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20180716084927.24869-1-alexander.sverdlin@nokia.com \ --to=alexander.sverdlin@nokia.com \ --cc=bp@alien8.de \ --cc=hpa@zytor.com \ --cc=linux-edac@vger.kernel.org \ --cc=mingo@redhat.com \ --cc=stable@vger.kernel.org \ --cc=tglx@linutronix.de \ --cc=thibaut.dewet@nokia.com \ --cc=tony.luck@intel.com \ --cc=x86@kernel.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.