Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp1214212pxy; Thu, 29 Apr 2021 02:06:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw5VeqrzpF2xOQfZEYBn5jkVNlfNf7RKpKi7qnLyCh2PZHNJeO/g7Eit0MkBDeL0U1mO03I X-Received: by 2002:a17:907:3e06:: with SMTP id hp6mr33372413ejc.273.1619687211060; Thu, 29 Apr 2021 02:06:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619687211; cv=none; d=google.com; s=arc-20160816; b=kVhv27LoO0JXrDl/ciJmMmilEaiGyD5mIVxdPjyAJhPt1hIjPl1cZe3Xsqm8TOk5Oa rpudfs1OR9jMDHhYIf30Ci/sAiNGIqEeEFI6iAuI0FHEcO07vADIEpz3yGC5J2xOwruq 479U8+w2rt9dSQlqg4DahKcRtKg/uC0mJ1em7MDws+cyBtYX54xjh6jMlZ4DDEOEhD5z XGRkbqntWejOYnq81cHIW3tS2H5HlBbVPipq0VLAH81txHZuylFOXL1YD+zWUzCV6Ij4 Rlca+66drXvx5ZXsSJleySo+Mo6uBXCggwFg1ZfZE0JsqN54Gdc/FgsvLBseKc994MaR tbyg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :to:from; bh=xYBa2+69OsShLDRR0/OCRopFU+6Wg8seWSbYtc9y8FI=; b=tucmByd5z0PD1nMbie7DPf+7ov1+UMj3NlgMo2TGXuh4PSaIbSY820bogmN7qUgejZ 9urk5r3uQ/02ZlJahXp3enOnS6E8osLnWrYqyPlfJKmfGLXUV8MomGaYW2iMo264O3jV Z5vlosK/8654KAXwh1KVaOc3SNULSF9C8iFCoHuqOOiuI1Wijlfn7xy0eVbWUtDPCkmr krVxPtqs4s7Bdyd2hsrXhO4Xj1y0jBE9rWMF3TwtZObqOpPlcatMgDK2TT8+Dh+Lk54Y J0Vbn8LAukfx4OFpssYPAsCb8N9Kjt3NaxiwqFEcAJxaTBOYw/u0ld8ldWoQDbMfdLGF YpgQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=vivo.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a25si2538335ejs.373.2021.04.29.02.06.28; Thu, 29 Apr 2021 02:06:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=vivo.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240270AbhD2JF4 (ORCPT + 99 others); Thu, 29 Apr 2021 05:05:56 -0400 Received: from mail-m17655.qiye.163.com ([59.111.176.55]:64146 "EHLO mail-m17655.qiye.163.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240247AbhD2JFx (ORCPT ); Thu, 29 Apr 2021 05:05:53 -0400 Received: from vivo-HP-ProDesk-680-G4-PCI-MT.vivo.xyz (unknown [58.250.176.229]) by mail-m17655.qiye.163.com (Hmail) with ESMTPA id A2623400B1; Thu, 29 Apr 2021 17:05:03 +0800 (CST) From: Wang Qing To: Jonathan Corbet , Wang Qing , Mauro Carvalho Chehab , Joe Perches , Stephen Kitt , Andrew Morton , Kees Cook , Randy Dunlap , "Guilherme G. Piccoli" , Qais Yousef , Petr Mladek , Santosh Sivaraj , Vlastimil Babka , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, Lepton Wu Subject: [PATCH V2,RESEND 3/4] doc: watchdog: Modify the explanation related to watchdog thread Date: Thu, 29 Apr 2021 17:04:27 +0800 Message-Id: <1619687073-24686-4-git-send-email-wangqing@vivo.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1619687073-24686-2-git-send-email-wangqing@vivo.com> References: <1619687073-24686-2-git-send-email-wangqing@vivo.com> X-HM-Spam-Status: e1kfGhgUHx5ZQUtXWQgYFAkeWUFZS1VLWVdZKFlBSE83V1ktWUFJV1kPCR oVCBIfWUFZQ0sYSVYZT0NDGR4fHx4YGE5VEwETFhoSFyQUDg9ZV1kWGg8SFR0UWUFZT0tIVUpKS0 hKTFVLWQY+ X-HM-Sender-Digest: e1kMHhlZQR0aFwgeV1kSHx4VD1lBWUc6MRw6PRw5NT8SKElCN0IsFytD LEwwFDJVSlVKTUpCTUNMSktPTklLVTMWGhIXVQwaFRwKEhUcOw0SDRRVGBQWRVlXWRILWUFZTkNV SU5LVUpMTVVJSUJZV1kIAVlBSE9PTTcG X-HM-Tid: 0a791cdfde86da01kuwsa2623400b1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org "watchdog/%u" threads has be replaced by cpu_stop_work. The current description is extremely misleading. Signed-off-by: Wang Qing --- Documentation/admin-guide/lockup-watchdogs.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Documentation/admin-guide/lockup-watchdogs.rst b/Documentation/admin-guide/lockup-watchdogs.rst index 290840c..3e09284 --- a/Documentation/admin-guide/lockup-watchdogs.rst +++ b/Documentation/admin-guide/lockup-watchdogs.rst @@ -39,7 +39,7 @@ in principle, they should work in any architecture where these subsystems are present. A periodic hrtimer runs to generate interrupts and kick the watchdog -task. An NMI perf event is generated every "watchdog_thresh" +job. An NMI perf event is generated every "watchdog_thresh" (compile-time initialized to 10 and configurable through sysctl of the same name) seconds to check for hardlockups. If any CPU in the system does not receive any hrtimer interrupt during that time the @@ -47,7 +47,7 @@ does not receive any hrtimer interrupt during that time the generate a kernel warning or call panic, depending on the configuration. -The watchdog task is a high priority kernel thread that updates a +The watchdog job runs in a stop scheduling thread that updates a timestamp every time it is scheduled. If that timestamp is not updated for 2*watchdog_thresh seconds (the softlockup threshold) the 'softlockup detector' (coded inside the hrtimer callback function) -- 2.7.4