Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp4107864imm; Tue, 25 Sep 2018 11:26:59 -0700 (PDT) X-Google-Smtp-Source: ACcGV60UIxvLrsCW0lIbCZnaX6/OKzbjTQpf9W+ipQdxhOOzj56F76UtHg2FRJAyEr6ZiMLGKpHj X-Received: by 2002:a17:902:bf43:: with SMTP id u3-v6mr2376762pls.88.1537900019929; Tue, 25 Sep 2018 11:26:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537900019; cv=none; d=google.com; s=arc-20160816; b=ChDYEreMI6iuoPnr5rP1mSYBgrfFBdxEUc1THS+j9ZKRMpReu1OskCK29GRuxPnaSJ iLMKtc2IYLPMYOKD73Ll5/YPClpgm2NVUxxDWP3VZLZS2q1ljeotlEwmcYwqRQsyCy0Y iAfc38ndOZ3SeK6XRwVjqYYINy84Vdnpps2EhrZA3i+Xn3giELt/Cb0OiLi/7pwkUs23 aRwRuLjjLoQOypfxyT61zt4nrctCy97aqXhG48jNVkV3NI7IH1hHqcdXq74UslPvLohx dCXoKmkHp1q4f1UST0AzlogTw0C3UEah1D/mlDHQMTQPwqDBTBEbuPxIlBcPffGeRlOF hidg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=IxI1FgJwMERM3UAhQcklkAKLrTq7+Ffd56oaBhs9q2Y=; b=Yfj3bSFIxlAaBtO4Cnc0YxyUiT9VY+pXcauAJxmVtUqueASCKk9sPT9KxPuBN4Ivsx OKnl9Am30LvUHTQkHPy6SGRvKdcVIXElkCcSlxJc3lTSltSuFt20LfcWZoNh7Qeq+7Ko ch/WuXenKsqIa4sdNDwxbiRaVTxDWgumPydlcnqIvEjK5O6Qh+vhCarJZ2Qn0PNLOoPk pcmZGUhskXN+J13sMZ7OPmmmEJg04k3pDKP0b9miMlSRLsRXAlJA/jgJiZ4gg33wTXxH ZHMxtymVGKlwsbFltHMfK0CjG4uXU/WdvScIdZlT64iUxhLfaWtzR6WK+myMoP4q6qGY raBw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@joelfernandes.org header.s=google header.b=bX7DIYfq; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k80-v6si2758301pfg.42.2018.09.25.11.26.44; Tue, 25 Sep 2018 11:26:59 -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; dkim=pass header.i=@joelfernandes.org header.s=google header.b=bX7DIYfq; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727429AbeIZAfP (ORCPT + 99 others); Tue, 25 Sep 2018 20:35:15 -0400 Received: from mail-pf1-f196.google.com ([209.85.210.196]:37055 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727406AbeIZAfO (ORCPT ); Tue, 25 Sep 2018 20:35:14 -0400 Received: by mail-pf1-f196.google.com with SMTP id x26-v6so1751316pfn.4 for ; Tue, 25 Sep 2018 11:26:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=joelfernandes.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=IxI1FgJwMERM3UAhQcklkAKLrTq7+Ffd56oaBhs9q2Y=; b=bX7DIYfq1TChJhi9OeUZVUPD/bUJU9KtYrS++kKV1v4hwpxJPazdz1oaWTt4ZY6FaH 3Cgzv03qQBO6VYO7Hqdg43006DEnetOYFmDSI0F/o0i5rZd2ECV183Q8wtN6ya4Bcjex m/vG80PsKKOeRN04CgD0U8d/swBA8w04gYQug= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=IxI1FgJwMERM3UAhQcklkAKLrTq7+Ffd56oaBhs9q2Y=; b=tUVsW8hDmVBeloUEi69fvTeLFej8cy8d5rWkjevy083iQ3gY3yembID13y9cIxR/D/ obODFXZbmtQUYyIAd0mPO3O8xjspkTKJPKIPkIzW6kLXzMK/tNFXPAn9bAUhXYyUKGzJ f+9fRiKBVENMMG+Yza7ES/quYSUXWwzCrNxqmsBtYSU2rWuJZa5729SLWstppVsxbHc7 dciI+4+EmjJYKR90rMOwOBmv1UiKQrauptwYLXiBYIrHJKuxrAoHtHmgvguoWLZjPWj/ siTzaibYsJIQVvHF3/duV3Naajde5c/BpLzFPf0DhEugkvBhEXJ++Uxlg1eX6l77BRtA svQg== X-Gm-Message-State: ABuFfojqD/cgBI/3kMaOe36ZVucXF6EqbvijL+qIL1MwqkxuIyEOvB1c Ryqb8Uh//qe19xGVivUcKURWvD/pyCc= X-Received: by 2002:a65:53c9:: with SMTP id z9-v6mr2123970pgr.203.1537899986543; Tue, 25 Sep 2018 11:26:26 -0700 (PDT) Received: from joelaf-glaptop0.roam.corp.google.com (c-98-210-118-128.hsd1.ca.comcast.net. [98.210.118.128]) by smtp.gmail.com with ESMTPSA id x70-v6sm6883626pfk.85.2018.09.25.11.26.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 25 Sep 2018 11:26:25 -0700 (PDT) From: "Joel Fernandes (Google)" To: linux-kernel@vger.kernel.org Cc: "Joel Fernandes (Google)" , Jonathan Corbet , Josh Triplett , Lai Jiangshan , linux-doc@vger.kernel.org, Mathieu Desnoyers , "Paul E. McKenney" , Steven Rostedt Subject: [1/5] doc: rcu: Update information about resched_cpu Date: Tue, 25 Sep 2018 11:25:57 -0700 Message-Id: <20180925182601.37421-2-joel@joelfernandes.org> X-Mailer: git-send-email 2.19.0.444.g18242da7ef-goog In-Reply-To: <20180925182601.37421-1-joel@joelfernandes.org> References: <20180925182601.37421-1-joel@joelfernandes.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Since commit fced9c8cfe6b ("rcu: Avoid resched_cpu() when rescheduling the current CPU"), resched_cpu is not directly called from sync_sched_exp_handler. Update the documentation about the same. Signed-off-by: Joel Fernandes (Google) --- .../Expedited-Grace-Periods/Expedited-Grace-Periods.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Documentation/RCU/Design/Expedited-Grace-Periods/Expedited-Grace-Periods.html b/Documentation/RCU/Design/Expedited-Grace-Periods/Expedited-Grace-Periods.html index e62c7c34a369..8e4f873b979f 100644 --- a/Documentation/RCU/Design/Expedited-Grace-Periods/Expedited-Grace-Periods.html +++ b/Documentation/RCU/Design/Expedited-Grace-Periods/Expedited-Grace-Periods.html @@ -160,9 +160,9 @@ was in flight. If the CPU is idle, then sync_sched_exp_handler() reports the quiescent state. -

-Otherwise, the handler invokes resched_cpu(), which forces -a future context switch. +

Otherwise, the handler forces a future context switch by setting the +NEED_RESCHED flag of the current task's thread flag and the CPU preempt +counter. At the time of the context switch, the CPU reports the quiescent state. Should the CPU go offline first, it will report the quiescent state at that time. -- 2.19.0.444.g18242da7ef-goog