Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp4426991rdh; Wed, 29 Nov 2023 00:48:32 -0800 (PST) X-Google-Smtp-Source: AGHT+IFkn57i0QWJUoCqQoTfLkyxKaBl1ROsdwE/YwkxyEDtzAmBFr+tAfyC8ZRoiIWaI6uhcVGo X-Received: by 2002:a05:6358:52c6:b0:16b:c479:d6c1 with SMTP id z6-20020a05635852c600b0016bc479d6c1mr21398058rwz.9.1701247712470; Wed, 29 Nov 2023 00:48:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701247712; cv=none; d=google.com; s=arc-20160816; b=zS1rG8xoWIYjTTxfO3I2g5ElJYDwB7k7RWaEuFjFHh82oA1IYMN0wYZ45zs/ejiGTX 8Rsr4886O5catjUNI0XMwWCBUKfefNsZ9N3l5lXQgrNjdtOGWbVRunU0s3Hc2urXAaOp lxBSvAcuWgDFlKJLAzWjM9j3bTWeBR7jd1x+VGrkXrIoZ1Tj6s4PI8/kUq8AYaFR72Ro ZdGtJxYiFJys39M2ktyLHRu8bMt83wKybYg1ks1DF+K1uXIqbiGM7qOWIupVtnjNIKZB DcrEdAyUgzqpNfZ29Hr0vGkU3lQiV3EKraYtVpjPZnR164hVCCAA/k0Pum92BjDOu7fa Qhcw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=hP6VPn85wa3m9k+ldJnRnmATChpOtIpCpCyu9HaUt/E=; fh=7XK6E8opnvAFOcXA6M7iIbWsU5mUKljd4SacDmVPnss=; b=I+nqEHkhEX4xQhGLJ5kx+dIf50F7e3SbenBeDEcXSkqC9tdJ7emufEhIIHny1TlOIr cgFA7rvy0VI+dRAVvFis3gFbwssUqKBOuvYVFH2bcNCTJFkGnDlT81tdlCHcZ8FDUOgo T2xn7KGQep4kdlrdlWWVMnprZAaeMBD3yXqDGVwa3fvppBIbT748DvATxap9yF3a6EFK yw3OPxmXZI6TZy6XV9LXlEqrY+JqmOUgucF9Ar4XCOvxtWBzRncBX4T7BwPOw2S7YIpu BMAjOuP0MZIa06YbXpku5jbhou+ArtnmwePm33311t3MEffCctE6Jr+knU3K3vBV4+t1 K1gA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id u2-20020a63f642000000b00565e865d381si14078542pgj.447.2023.11.29.00.48.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Nov 2023 00:48:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id A98CD8059169; Wed, 29 Nov 2023 00:48:29 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231993AbjK2IsN (ORCPT + 99 others); Wed, 29 Nov 2023 03:48:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34420 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232152AbjK2IsK (ORCPT ); Wed, 29 Nov 2023 03:48:10 -0500 Received: from out30-98.freemail.mail.aliyun.com (out30-98.freemail.mail.aliyun.com [115.124.30.98]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D04511BDF for ; Wed, 29 Nov 2023 00:48:13 -0800 (PST) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R581e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046060;MF=liusong@linux.alibaba.com;NM=1;PH=DS;RN=4;SR=0;TI=SMTPD_---0VxNaVWc_1701247654; Received: from localhost(mailfrom:liusong@linux.alibaba.com fp:SMTPD_---0VxNaVWc_1701247654) by smtp.aliyun-inc.com; Wed, 29 Nov 2023 16:48:11 +0800 From: Liu Song To: mingo@redhat.com, peterz@infradead.org Cc: linux-kernel@vger.kernel.org, liusong@linux.alibaba.com Subject: [PATCH] sched/fair: code style adjustment Date: Wed, 29 Nov 2023 16:47:34 +0800 Message-Id: <20231129084734.20877-1-liusong@linux.alibaba.com> X-Mailer: git-send-email 2.19.1.6.gb485710b MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, UNPARSEABLE_RELAY autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Wed, 29 Nov 2023 00:48:29 -0800 (PST) In "__assign_cfs_rq_runtime", since the else uses {}, corresponding if should also use {} for a more consistent look. Signed-off-by: Liu Song --- kernel/sched/fair.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index 34e23a8984ac..8bcb85ee7a21 100644 --- a/kernel/sched/fair.c +++ b/kernel/sched/fair.c @@ -5581,9 +5581,9 @@ static int __assign_cfs_rq_runtime(struct cfs_bandwidth *cfs_b, /* note: this is a positive sum as runtime_remaining <= 0 */ min_amount = target_runtime - cfs_rq->runtime_remaining; - if (cfs_b->quota == RUNTIME_INF) + if (cfs_b->quota == RUNTIME_INF) { amount = min_amount; - else { + } else { start_cfs_bandwidth(cfs_b); if (cfs_b->runtime > 0) { -- 2.19.1.6.gb485710b