From patchwork Sat Dec 23 16:09:47 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: tip-bot2 for Thomas Gleixner X-Patchwork-Id: 182976 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:2483:b0:fb:cd0c:d3e with SMTP id q3csp1751342dyi; Sat, 23 Dec 2023 08:10:26 -0800 (PST) X-Google-Smtp-Source: AGHT+IF0ukSHY1PORRNalYIwWmRRp84G5SxADfmClN1Gr65SiyfakOD33z/wR26AY7q/JlYjjeFR X-Received: by 2002:aa7:8216:0:b0:6d9:39bf:2c3b with SMTP id k22-20020aa78216000000b006d939bf2c3bmr1634444pfi.8.1703347826593; Sat, 23 Dec 2023 08:10:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703347826; cv=none; d=google.com; s=arc-20160816; b=uZwLgqN9VS9Lg/NZ7loQZ1ZFa0SaVq8VUJ4h9rm+0xTcONxlXmIkON8KGqKTiats8G lalTE5X7CJsVQW9PDPahKPgQqEu/XeNpl+iPxfOl1lgULd5q0JBUcCf363NNuUmqZhV+ BV7CdAUA/bSzdb78XOGYShQj02Aw15bFwBtFaUp0kWXxpXlInt3Wqb42NWYg/ghsFR8O G06Z17E9q5V0a+k5GhIXwT3N+H7Q+VjFDGtm1jqUHeNJL1nzB3INU8VsP/htpllZ2kAU e+fAefNZi91leTtqoJhhWI+7X5lC3FKmDmakG7XCFCgJ5yHBP7RCEzc2ubzyuxmIUXRx yv1w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:precedence:robot-unsubscribe:robot-id :message-id:mime-version:list-unsubscribe:list-subscribe:list-id :precedence:references:in-reply-to:cc:subject:to:reply-to:sender :from:dkim-signature:dkim-signature:date; bh=jdGCwaiRBNJcXRxfRezy5MYbCGCwO8pD1yTpHSGmw0s=; fh=dgUU9EKURdpL1eTITZousH7NWwhEi8yd7Ljj+JwwWs8=; b=KmMuRks7vXNJkYALFnVyTrNmpftoXYXVPYliwtRcxdOMK1oyyNT39w+VUGZxv3XVrC l4qsS/QT1ukm0vN8fV5d56b8nigvhv6NxlKoVVDPjuNqYTDbTne6IrdlGBB9Uk2Cnz95 jS4MSxjhRsIJEaUkS/EU/bZuEgjgm5LWCaWh9eFdsq40yzVAp6S6mTZR7/s4y5Fmd8n+ tXF9aiZyR/SXuMAnPQBhYYIfLYzA3anxmfCh/lwtJ183tHWwR/r5o2Zy9CPpoKQWDUvr Acae8rZU0emc6fLPlVfNlITgagIj8AThg9qR+NpIzNALdC51kpGoGpcYQatuT+4X+ZP9 jtbg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=xApULiD3; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; spf=pass (google.com: domain of linux-kernel+bounces-10486-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-10486-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id j10-20020a63594a000000b005cdc081bd32si5006367pgm.646.2023.12.23.08.10.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 23 Dec 2023 08:10:26 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-10486-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=xApULiD3; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; spf=pass (google.com: domain of linux-kernel+bounces-10486-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-10486-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 3A798283212 for ; Sat, 23 Dec 2023 16:10:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B0DA8134DD; Sat, 23 Dec 2023 16:10:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="xApULiD3"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="amwVd3rV" X-Original-To: linux-kernel@vger.kernel.org Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A019BFBFD; Sat, 23 Dec 2023 16:09:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Date: Sat, 23 Dec 2023 16:09:47 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1703347788; 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=jdGCwaiRBNJcXRxfRezy5MYbCGCwO8pD1yTpHSGmw0s=; b=xApULiD3EJPXXwKhTqafVGQeQhLRjZZdZqJSo4TVo0ZY3kGu/xZnoGRnKSUQkfdMFTuNyn iLxww0bF8Hzk3Pj/sgNQRq2u5dMEGDk7iyxAd1mQNmWdokne8PGwZMlPIvqCs6pjijEALl AuCXxRHAR9FxZxneauWnY1I5JpvOl0Dcf/njLe30MTsi08G2rqrdf5RypXzjcJ8luRQkqc OsyYq5dFuL2MS27N9YM/txKxmuaFaYoy00GPq7xUWOquNVCQGaZDmFmAqQGyW6p3NQ8Ax5 nHWdXuCzPSXylYaE3hXI2eYtd9XmdH7MQisrP6V03aa/7fbAvfVXMH9mEnjcjw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1703347788; 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=jdGCwaiRBNJcXRxfRezy5MYbCGCwO8pD1yTpHSGmw0s=; b=amwVd3rVTwQn50X2otN5T+uu6f2Bf3yewg02rWHYZc6YBzQhDMDQT1H1LUpnfwEtQ8bM0I yJj49RVadrc5j6Bg== From: "tip-bot2 for Wang Jinchao" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: sched/core] sched/fair: Remove unused 'next_buddy_marked' local variable in check_preempt_wakeup_fair() Cc: Wang Jinchao , Ingo Molnar , Vincent Guittot , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <202312141319+0800-wangjinchao@xfusion.com> References: <202312141319+0800-wangjinchao@xfusion.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <170334778771.398.14685074303951213836.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Precedence: bulk X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1786089650271334293 X-GMAIL-MSGID: 1786089650271334293 The following commit has been merged into the sched/core branch of tip: Commit-ID: fbb66ce0b1d670c72def736a13ac9176b860df4e Gitweb: https://git.kernel.org/tip/fbb66ce0b1d670c72def736a13ac9176b860df4e Author: Wang Jinchao AuthorDate: Thu, 14 Dec 2023 13:20:29 +08:00 Committer: Ingo Molnar CommitterDate: Sat, 23 Dec 2023 16:12:21 +01:00 sched/fair: Remove unused 'next_buddy_marked' local variable in check_preempt_wakeup_fair() This variable became unused in: 5e963f2bd465 ("sched/fair: Commit to EEVDF") Signed-off-by: Wang Jinchao Signed-off-by: Ingo Molnar Reviewed-by: Vincent Guittot Link: https://lore.kernel.org/r/202312141319+0800-wangjinchao@xfusion.com --- kernel/sched/fair.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index 1d561b5..9cc2085 100644 --- a/kernel/sched/fair.c +++ b/kernel/sched/fair.c @@ -8221,7 +8221,6 @@ static void check_preempt_wakeup_fair(struct rq *rq, struct task_struct *p, int struct task_struct *curr = rq->curr; struct sched_entity *se = &curr->se, *pse = &p->se; struct cfs_rq *cfs_rq = task_cfs_rq(curr); - int next_buddy_marked = 0; int cse_is_idle, pse_is_idle; if (unlikely(se == pse)) @@ -8238,7 +8237,6 @@ static void check_preempt_wakeup_fair(struct rq *rq, struct task_struct *p, int if (sched_feat(NEXT_BUDDY) && !(wake_flags & WF_FORK)) { set_next_buddy(pse); - next_buddy_marked = 1; } /*