From patchwork Sat Jun 17 07:52:52 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Miaohe Lin X-Patchwork-Id: 109430 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp1847660vqr; Sat, 17 Jun 2023 01:14:42 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ46P08eremzN6updVu01QvfmRXw9fnrwNvjipFFqfC53lTRCBGnoOBCn4oABo0Eamb9XBxX X-Received: by 2002:a17:903:228c:b0:1b5:4164:a5b2 with SMTP id b12-20020a170903228c00b001b54164a5b2mr840674plh.36.1686989682593; Sat, 17 Jun 2023 01:14:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686989682; cv=none; d=google.com; s=arc-20160816; b=YPU6seQoufVvYO/QEh+bflY/lY8uL2mJJRfEuxgvL1gRGjOnHc3CvcMlOBXh9X//+g sFcl7YnQiT4gTt+dalI1804ca1oVqC06sD+QqER20AuG2RSmaNNj77Tbumvbb8yEbM8W m+ckUrihFdzboIcuvy9Dcfm+M19QjMzeTq65K4fCKFZ9VKkFcsGbHjmvk8wuIqPSaVCq wbBC6YvIf2lQUjeKN9tpVd+MB/acpRE+BDk+/LDSHoqKkBeeNZFeea9zWjceCKZKnurV zPtYrizWTTL76bqtQjWXSoGf/V2iXwlEPmphTmJKnZQutcRtdTfvEgzC7N9m/pBJmw4K ooeA== 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=b3Pg6mSMphs7/SLsYQdcGxA6V388kM9QcEIENVU7nWw=; b=w0S2W3Psf2JfgxxqG+w4IRsUmfoKMHxMELKgYrv/Y+BxUbcmscO69wACC1IK2kTmGo FuD0aU2uPAvsxdY9zZZGzzY0FdC9LtZDAfKgcBcF1L6kitQUw3ry5hJTg4hwvjlPv+m/ kigUbW5HJ4cYYZHgUZW9m4SP3P/Yn+ysV8meKnvVKmpqCYWhuRBD2m3rsnTjBxtRh4eV IoZK5TZOeQz2pg6GZSgg+vF1xC48dtWM1EhLd6HWwBP4H+1ZNw/UXru5jCfrNu2CrSns lmibhMqY+SQKR+gNmGulH8Nn2DnxIiO0CWevolLCddq4kyednvzdcnurEATYVrQJJiiA q6xA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id jx7-20020a170903138700b001b04903dd73si15682130plb.120.2023.06.17.01.14.30; Sat, 17 Jun 2023 01:14:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346215AbjFQHx2 (ORCPT + 99 others); Sat, 17 Jun 2023 03:53:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52470 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231929AbjFQHxZ (ORCPT ); Sat, 17 Jun 2023 03:53:25 -0400 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E0CB52720 for ; Sat, 17 Jun 2023 00:53:24 -0700 (PDT) Received: from canpemm500002.china.huawei.com (unknown [172.30.72.57]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4QjpDb2YwHzqTsN; Sat, 17 Jun 2023 15:53:19 +0800 (CST) Received: from huawei.com (10.175.104.170) by canpemm500002.china.huawei.com (7.192.104.244) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23; Sat, 17 Jun 2023 15:53:21 +0800 From: Miaohe Lin To: , , , CC: , , , , , , , Subject: [PATCH] sched: remove hrtick_enabled() when !CONFIG_SCHED_HRTICK Date: Sat, 17 Jun 2023 15:52:52 +0800 Message-ID: <20230617075252.1943542-1-linmiaohe@huawei.com> X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 X-Originating-IP: [10.175.104.170] X-ClientProxiedBy: dggems703-chm.china.huawei.com (10.3.19.180) To canpemm500002.china.huawei.com (7.192.104.244) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1768936893200554430?= X-GMAIL-MSGID: =?utf-8?q?1768936893200554430?= When CONFIG_SCHED_HRTICK is not enabled, hrtick_enabled() is never used. So remove it. Signed-off-by: Miaohe Lin --- kernel/sched/sched.h | 5 ----- 1 file changed, 5 deletions(-) diff --git a/kernel/sched/sched.h b/kernel/sched/sched.h index f510a14c7a1d..6948d95337fb 100644 --- a/kernel/sched/sched.h +++ b/kernel/sched/sched.h @@ -2530,11 +2530,6 @@ static inline int hrtick_enabled_dl(struct rq *rq) return 0; } -static inline int hrtick_enabled(struct rq *rq) -{ - return 0; -} - #endif /* CONFIG_SCHED_HRTICK */ #ifndef arch_scale_freq_tick