Message ID | 169718437261.3135.12208635380704050499.tip-bot2@tip-bot2 |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2908:b0:403:3b70:6f57 with SMTP id ib8csp1732661vqb; Fri, 13 Oct 2023 01:06:50 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHvToDGv/Cab9VAwEzuqYzBJlMg3qjZlC0uKUkGnTPReEpGNnKJyq7tYgiOU1Pll9HL/nRN X-Received: by 2002:a17:902:ce86:b0:1c4:2b71:7dc9 with SMTP id f6-20020a170902ce8600b001c42b717dc9mr29351691plg.4.1697184409895; Fri, 13 Oct 2023 01:06:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697184409; cv=none; d=google.com; s=arc-20160816; b=ORGVf4JnnUJ7/s6Ktudq50pCiTQrzzzA2jrDp1Cpp8a639taAsva39hYobdW+3lcy5 1+SclwqGgnAMUeTXxmbhVJ355imjmvrYnbbTD68n76QYfh3X349zwg/Iq9NPV0LqzLE1 RUQObj3Gu7625Ka/V/SI8Q8V+D9Cfu8/GE3ELcTcVdAbwqirlM3eyhE45NRFbhUs/SDk WXP+/+qD1YaGCiuOEu+h/XI1sK4piVvC3NFyJDb0tLZdrl9Cplxy2VIUzANZQGzh6NUZ mKlTC3Q56WmWEoa9EMS07I6TKNdSE5e7tHQBaIwU7O8m5vfT1+DGp/V+hWtlDfcyTHma FJFg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:robot-unsubscribe :robot-id:message-id:mime-version:references:in-reply-to:cc:subject :to:reply-to:sender:from:dkim-signature:dkim-signature:date; bh=OBaUkWG9J3apSizB+NsKQOuu0IKcHSFNhRVgtXFc2Yk=; fh=rfwYGL/xMuytw3udAx4hGNmVrXnFnOadgW52YT9hCAw=; b=wGY2hcgxFpPEYNR6He8ETHGcQQqj1i5JYmWS6u+xVDC/cLdIufwADvVVCSg4QP0US/ Q02Xkdquu/ExyCKa+/iDKG0s0Qq2Aj60iOJFSMy+Qca5KnEQ6s5FTX53+ocx1Wcpf8Qy m8v3sCka4pfsO12nM7S+vQ7xwvH6DN0LEtVNKvbJgDfnS08THmBvN49h00xeltGLOOEx wI5gHp//dx+B/T+f9bj2OnWnVl5uX+MH2gMXOPVcxYuVvu0U6QuHEM47/6jc2PRl+4JE xuDfRjyipRnOnfBsfxu+/mrcrn6DyAWOiGOqXVtjwqgagMK5vbn95Awmo9VeL851FY/2 BnCA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=e59yyw6+; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=EZWI+CC5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id s6-20020a170902988600b001c618473ac1si3680432plp.627.2023.10.13.01.06.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Oct 2023 01:06:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=e59yyw6+; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=EZWI+CC5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 60172842C6AE; Fri, 13 Oct 2023 01:06:47 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229998AbjJMIGX (ORCPT <rfc822;rua109.linux@gmail.com> + 19 others); Fri, 13 Oct 2023 04:06:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40546 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229884AbjJMIGQ (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 13 Oct 2023 04:06:16 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A97FCC9; Fri, 13 Oct 2023 01:06:14 -0700 (PDT) Date: Fri, 13 Oct 2023 08:06:12 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1697184373; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=OBaUkWG9J3apSizB+NsKQOuu0IKcHSFNhRVgtXFc2Yk=; b=e59yyw6+xMgAiFzup1SCDx7Tr3kxwbMhv0r38xQKVSQoE2mESiWBM3USdCiAn7CPEtO32P bZS0J6rjdCT2YyhTOstteaA4zW9pyxYDXFAuKvPFiSgCgXGEpWcS/IX8j+fN6vyGculKkZ iUbmWvvzdEe7fJZt0vEUGviAJWjJdntttLv5isjZHT82iXAjzioR+ZiEVmkgwAQznoIMK6 PE2odCSwXMegXwR2xZwVME44J+SYk1gYYc1wgHueTQSCDHm8IJMHyJr+6rRvtVshXHJW65 SCrtx5g0UOQXG11WrKfNIzRadBtsXUwVXiDeOl7ft3rcXoO2ARwmgW70x5JR8g== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1697184373; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=OBaUkWG9J3apSizB+NsKQOuu0IKcHSFNhRVgtXFc2Yk=; b=EZWI+CC5Ik1bgDyrvw6SehZXmDsOP+elnBTv89uG0m9ZRdZw9rDFUPrmUDMIKMGqcdU1IB 2x7aUOK/sJg61+Ag== From: "tip-bot2 for Haifeng Xu" <tip-bot2@linutronix.de> Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: sched/core] sched/psi: Bail out early from irq time accounting Cc: Haifeng Xu <haifeng.xu@shopee.com>, "Peter Zijlstra (Intel)" <peterz@infradead.org>, Chengming Zhou <zhouchengming@bytedance.com>, x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20230926115722.467833-1-haifeng.xu@shopee.com> References: <20230926115722.467833-1-haifeng.xu@shopee.com> MIME-Version: 1.0 Message-ID: <169718437261.3135.12208635380704050499.tip-bot2@tip-bot2> Robot-ID: <tip-bot2@linutronix.de> Robot-Unsubscribe: Contact <mailto:tglx@linutronix.de> to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Fri, 13 Oct 2023 01:06:47 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1779626839901680697 X-GMAIL-MSGID: 1779626839901680697 |
Series |
[tip:,sched/core] sched/psi: Bail out early from irq time accounting
|
|
Commit Message
tip-bot2 for Thomas Gleixner
Oct. 13, 2023, 8:06 a.m. UTC
The following commit has been merged into the sched/core branch of tip: Commit-ID: 0c2924079f5a83ed715630680e338b3685a0bf7d Gitweb: https://git.kernel.org/tip/0c2924079f5a83ed715630680e338b3685a0bf7d Author: Haifeng Xu <haifeng.xu@shopee.com> AuthorDate: Tue, 26 Sep 2023 11:57:22 Committer: Peter Zijlstra <peterz@infradead.org> CommitterDate: Fri, 13 Oct 2023 09:56:29 +02:00 sched/psi: Bail out early from irq time accounting We could bail out early when psi was disabled. Signed-off-by: Haifeng Xu <haifeng.xu@shopee.com> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Reviewed-by: Chengming Zhou <zhouchengming@bytedance.com> Link: https://lore.kernel.org/r/20230926115722.467833-1-haifeng.xu@shopee.com --- kernel/sched/psi.c | 3 +++ 1 file changed, 3 insertions(+)
diff --git a/kernel/sched/psi.c b/kernel/sched/psi.c index 44a7877..519bc92 100644 --- a/kernel/sched/psi.c +++ b/kernel/sched/psi.c @@ -998,6 +998,9 @@ void psi_account_irqtime(struct task_struct *task, u32 delta) struct psi_group_cpu *groupc; u64 now; + if (static_branch_likely(&psi_disabled)) + return; + if (!task->pid) return;