Received: by 2002:ac0:aa62:0:0:0:0:0 with SMTP id w31-v6csp732965ima; Wed, 24 Oct 2018 08:22:46 -0700 (PDT) X-Google-Smtp-Source: AJdET5dWYfrXBRRihSdbeOJeNXz6hstxfLHrKOgvaejBF+rCItcBfpDqI+fiUS5QJ9jBIWyW07l9 X-Received: by 2002:a63:ff46:: with SMTP id s6-v6mr2921553pgk.241.1540394566270; Wed, 24 Oct 2018 08:22:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540394566; cv=none; d=google.com; s=arc-20160816; b=E6RtpP2b59J6cUbhY8Mb7XRjyL3kjzjG6N4ZL/8E73vm6juKiAdXxwbOMCceMZvL/W TGAvu5xAoaD497u1CusHSaa0DqGXcgS4seekPgp8JNLo08jRzZrRziiXoiHTOTYwrVdS c10WSO5kDptghdDLU3gH4YmMQUGqTfRj5GtuqAuPnuRacx4rx+X9aeemYQsouTR7qWEQ h39IvgEfF9XtyqVP65DQ/rbe9V26ooKs8yjq7avt6cvZHm4xTGPMoKTTqVq9AiUTPGxW z6BwfO+T7U2+LRZOYH1/CTal85lTwlejhah7UpIYWsINTKJX1toNBc8ACegWTHvH7CtE +HPw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:to:from; bh=5xRd60ssUpLcW3CUjiyW3Z7dyBe87QaohcLsUCd6rvI=; b=JqWxYhcn5ylaZybVm3Jc2d9kvzFKf0+qc9jmOxC9AoBBKr3VWLW+utLq1/HIDV7azG Wwjutt7FXoL0qgtEwAP1KY/+CWLTih9dkmHKiq4ZFGCKPAuz1KqrUxfafLy0u6wvPciD EC3Z6v6L0ZXzaRDhbVY4eu4clRfEEhzJSYRsyfS05Na4ACR22cqpzn/mBvbESigaQGOt 1CWFI+DWS74lqlIV0oIkvob7tKC1KaFoeeCLyakUaZUHghCHSWeYaQOmf5nWVe1T7XMH Lw0+6tzOX/zAwSoy0Ebr8CvoBgU2L3LBGHZCIjE7ls0Ruln3KK0G7rVn2PsRLFJlDy+r t+kw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 33-v6si4890543pll.238.2018.10.24.08.22.22; Wed, 24 Oct 2018 08:22:46 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726732AbeJXXuL (ORCPT + 99 others); Wed, 24 Oct 2018 19:50:11 -0400 Received: from mx1.redhat.com ([209.132.183.28]:19234 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726407AbeJXXuK (ORCPT ); Wed, 24 Oct 2018 19:50:10 -0400 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 4090F308ED5F for ; Wed, 24 Oct 2018 15:21:40 +0000 (UTC) Received: from loberhel74.redhat.com (ovpn-121-56.rdu2.redhat.com [10.10.121.56]) by smtp.corp.redhat.com (Postfix) with ESMTP id AC04A60921; Wed, 24 Oct 2018 15:21:39 +0000 (UTC) From: Laurence Oberman To: linux-kernel@vger.kernel.org, loberman@redhat.com Subject: [PATCH] init/main.c Enable watchdog_thresh control from kernel line Date: Wed, 24 Oct 2018 11:21:24 -0400 Message-Id: <1540394484-18252-1-git-send-email-loberman@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.44]); Wed, 24 Oct 2018 15:21:40 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Both graphics and serial consoels are exposed to hard lockups when handling a large amount of messaging. The kernel watchdog_thresh parameter up to now has not been available to be set on the kernel line for early boot. This patch allows the setting of watchdog_thresh to be increased when needed to avoid the hard lockups in the console code. Signed-off-by: Laurence Oberman --- init/main.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/init/main.c b/init/main.c index e4a3160..5882750 100644 --- a/init/main.c +++ b/init/main.c @@ -977,6 +977,15 @@ static int __init set_debug_rodata(char *str) __setup("rodata=", set_debug_rodata); #endif +static int __init +is_watchdog_thresh_setup(char *str) +{ + get_option(&str, &watchdog_thresh); + return 1; +} +__setup("watchdog_thresh=", is_watchdog_thresh_setup); + + #ifdef CONFIG_STRICT_KERNEL_RWX static void mark_readonly(void) { -- 1.8.3.1