Received: by 2002:a05:6a10:6006:0:0:0:0 with SMTP id w6csp398504pxa; Thu, 27 Aug 2020 05:39:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxjVI5qituNrvto13/7Tl6ypqgsR44cZ4ctNE8GC6aQqCxEfU19UWP9zPmSo2gO4sFUj2Kx X-Received: by 2002:a05:6402:206a:: with SMTP id bd10mr19205945edb.321.1598531962040; Thu, 27 Aug 2020 05:39:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598531962; cv=none; d=google.com; s=arc-20160816; b=qs0x6/DTS16urjBL4rDU3Y90wdbCkrRN+wNTIivoy5dyaoDUeM10y9MUka+bMSrAWf +6EFgFJ0gahmg7l+zfdd15Jxa83Az7U0/NXTRqR/SQaNXfxmF90HWT2OLD5iyTscoNC6 0tX3/n0YT5H892CiDUatBXAz2xUIT6s6LERFd6539rCAYSaOKkTY0YBEe6n9o9+J2kyJ JZ5Xt6x7X3llh5aVDTpNS0tV4dfjVZMM4Em/EA+sSgpRHzzgru6leXOTO7QnQ+PLL7w4 tDwXGXhazMVSh6Oq1YAyP93ChJhMbzwtgHqcuvrraIjVrQXzJUHwMvYIyiNkBHdZtk67 Dxew== 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 :message-id:date:subject:cc:to:from; bh=LCxO3Y3ZG6ffwAjVxSLERx3lDsoOYIAwWHFluEe/wrE=; b=PAldjrRSt5uJbuQb/5zGmC5orECkDtzJKECn4yonPpUfzZL61kz9l3v7Nr5YfDH4pF sB7PDFFI7D04lX85kVzH+54mzeNul7bQVlNJUEcyhJnQnp1MpVlC3jM7vgprutI72rX9 fnMkZAiH3sMuoExD4FjIy9FwHozwLmn5lg2WWg4H0yGDCMnXaW99bkGiLbdvx6vpeHJC cmPXqMxUgmFiAZKlQfyYv3xv0680miIj6uq/p5V2zhlvcLMAYIADG8k447skN03xypMt ak8ZSpjNX9Kbi6zTksyZnMmYqdxh1WMLn+ph6dIwNKf+0tEeAkw6qdLyA3BaMYEcR+5o zs3Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id qx20si1212859ejb.214.2020.08.27.05.38.59; Thu, 27 Aug 2020 05:39:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728946AbgH0Mh3 (ORCPT + 99 others); Thu, 27 Aug 2020 08:37:29 -0400 Received: from smtp2207-205.mail.aliyun.com ([121.197.207.205]:42223 "EHLO smtp2207-205.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728957AbgH0MMs (ORCPT ); Thu, 27 Aug 2020 08:12:48 -0400 X-Alimail-AntiSpam: AC=CONTINUE;BC=0.1618609|-1;CH=green;DM=|CONTINUE|false|;DS=CONTINUE|ham_enroll_verification|0.0266949-0.00317964-0.970125;FP=10364181428023396474|1|1|9|0|-1|-1|-1;HT=e01l04362;MF=frank@allwinnertech.com;NM=1;PH=DS;RN=11;RT=11;SR=0;TI=SMTPD_---.IOlFrJR_1598530361; Received: from allwinnertech.com(mailfrom:frank@allwinnertech.com fp:SMTPD_---.IOlFrJR_1598530361) by smtp.aliyun-inc.com(10.147.42.198); Thu, 27 Aug 2020 20:12:45 +0800 From: Frank Lee To: mingo@redhat.com, peterz@infradead.org, juri.lelli@redhat.com, vincent.guittot@linaro.org, dietmar.eggemann@arm.com, rostedt@goodmis.org, bsegall@google.com, mgorman@suse.de Cc: linux-kernel@vger.kernel.org, tiny.windzz@gmail.com, Yangtao Li Subject: [PATCH] sched: idle: Change the cpu_idle_poll() return type to void Date: Thu, 27 Aug 2020 20:12:25 +0800 Message-Id: <20200827121225.2991-1-frank@allwinnertech.com> X-Mailer: git-send-email 2.28.0 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 From: Yangtao Li No one cares about the return value of this function, which only increases the time spent in idle loop. Let's drop it. Signed-off-by: Yangtao Li --- kernel/sched/idle.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/kernel/sched/idle.c b/kernel/sched/idle.c index 6bf34986f45c..5250a7c466e6 100644 --- a/kernel/sched/idle.c +++ b/kernel/sched/idle.c @@ -52,7 +52,7 @@ static int __init cpu_idle_nopoll_setup(char *__unused) __setup("hlt", cpu_idle_nopoll_setup); #endif -static noinline int __cpuidle cpu_idle_poll(void) +static noinline void __cpuidle cpu_idle_poll(void) { rcu_idle_enter(); trace_cpu_idle_rcuidle(0, smp_processor_id()); @@ -65,8 +65,6 @@ static noinline int __cpuidle cpu_idle_poll(void) start_critical_timings(); trace_cpu_idle_rcuidle(PWR_EVENT_EXIT, smp_processor_id()); rcu_idle_exit(); - - return 1; } /* Weak implementations for optional arch specific functions */ -- 2.28.0