From patchwork Thu Jan 4 03:23:54 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 123386 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp10938494qgn; Wed, 3 Jan 2018 19:24:04 -0800 (PST) X-Google-Smtp-Source: ACJfBosJDg5lOVUCPgXMBiia/Z0n15n/e8zwmEFZj2w4SkWzQbt4BIHiNX8S6RRwbVkv9ls9NjE1 X-Received: by 10.98.80.85 with SMTP id e82mr3306968pfb.87.1515036244369; Wed, 03 Jan 2018 19:24:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1515036244; cv=none; d=google.com; s=arc-20160816; b=vNeOQVasfpowI1jyH2hoKpgyY1mC5KPXy3CqdMSzhKTbvt1/5mZTv+cVzpxttoIZa+ f7nj3fu6K8TiXZe3FrmyrUM1h7r8ZfvOwHoN5PQ7NBpZjB5+/1DxWUsnkqdRPsun8U4a P+1TcqycU0W7Zrf7wCsR2Q2itRS0m+uA47KBRBiwzxDfWE6aVhGViKdJjBryVHxqHqxf k9/DFAkKCbnO0xlaUJqvkZp9o7HOiDB63IVa/fj1C45rkNcQwV3BNC+U8/g+L/EWkNch W2ESe5Pj31pWi7EE5Su960XBeJXj4GJD+BWwda89Pkh5fFawpA6z5L+s6bPHGWsf2yB+ 2lFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=aVTUjYN/hT96B0M1yEV3kS5vfwmSt1ePJa8oaxKN4Ms=; b=FppNgJ+q58DZhEnRSjk5i9eb5vukTDod3yIweJNO8+fNVJVAuvea+2cPoZwVGbfHOx me5NENLvXCNeEXoUXYyMkRl/u7opoQUDhAoaRClTBAA3Vh8pAOg1q3lHaiTJxi8B9B5j rK9Qg0oTpzA9LSnL2XztH/JN1JACl2wGuD6+/detWENVUZR9/br+/H5larW8qi8fF6MC rmiJXMymFg2830eY+8Hxld19GtDFnkW1cngxbfmCgUPVrWwBvpplX/B0bMOCbzi/d7vY I3RvBrLllycGmDzOw+NyRnlZMbiOOBeX7nOa2KHi+i1arQULn+1RSv3bsryAMeyXm67+ FdBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=dIjog7/p; spf=pass (google.com: best guess record for domain of linux-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-pm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h72si1683047pfj.20.2018.01.03.19.24.03; Wed, 03 Jan 2018 19:24:04 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=dIjog7/p; spf=pass (google.com: best guess record for domain of linux-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-pm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751580AbeADDYC (ORCPT + 11 others); Wed, 3 Jan 2018 22:24:02 -0500 Received: from mail-pl0-f67.google.com ([209.85.160.67]:37660 "EHLO mail-pl0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751536AbeADDYB (ORCPT ); Wed, 3 Jan 2018 22:24:01 -0500 Received: by mail-pl0-f67.google.com with SMTP id s3so317325plp.4 for ; Wed, 03 Jan 2018 19:24:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=aVTUjYN/hT96B0M1yEV3kS5vfwmSt1ePJa8oaxKN4Ms=; b=dIjog7/pFNBlZmyd47hEZU1/LGd7ACuHQZI3VipLoWfkXs58OYsVKnGL+8IlJV39an zPnlNicTtPng1WuPubIchlaL7xQXc/5KIsIO3HxjBXlZfK05xSyVP/atUA80SPfXY3Ia Vcq8ZgVc9dleBpkI9+gH8KWXltaO3HThgNQeY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=aVTUjYN/hT96B0M1yEV3kS5vfwmSt1ePJa8oaxKN4Ms=; b=lxY7LkOSxwPZiSGek2MxrygmZTSUh5C7f0+eGDmRzSNqmG0Ak6WtVVOse3sVyxPcNn 6gxyt/Gs5oLPcoB8UYRxU557JgCA+nhjgqXgoW+R2PrFJNca0bMakbefsKsDOgXqZaR8 blnYR3t2EGxqRObCrrR9/VGBvUSnaxUG2thK0idqE0l+3KqTyUDbUFgbkqaAD8WCHmHz XhQ0czpaVQWCyIHwfgrdkEBD+wgt4bH08VMLCPSEXBgGmyKOSq6MK3dQwZa1TjC7pNW4 RRdvEpIuFIKUiBY05li/W57Nqmg+kR4fKRMzg2OeJbiK4PnArD17xDqiTIEfZuaDqGlG R7hQ== X-Gm-Message-State: AKGB3mKc7rpcZno+gc4PsneECN7P0V9Zts3gbJ+7o4LhoHAB0TFZQhxy lT+XbsCHBWnyzOIMBbPg7Tiviw== X-Received: by 10.84.217.2 with SMTP id o2mr3358344pli.385.1515036240729; Wed, 03 Jan 2018 19:24:00 -0800 (PST) Received: from localhost ([122.172.219.75]) by smtp.gmail.com with ESMTPSA id b67sm5425920pfm.19.2018.01.03.19.23.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 03 Jan 2018 19:23:59 -0800 (PST) From: Viresh Kumar To: Rafael Wysocki Cc: Viresh Kumar , linux-pm@vger.kernel.org, Vincent Guittot , linux-kernel@vger.kernel.org Subject: [PATCH] cpufreq: stats: Change return type of cpufreq_stats_update() as void Date: Thu, 4 Jan 2018 08:53:54 +0530 Message-Id: <2d7702d02aba4d70f8d9a3e3612a7daea97aa3f5.1515036227.git.viresh.kumar@linaro.org> X-Mailer: git-send-email 2.15.0.194.g9af6a3dea062 Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org It always returns 0 and none of its callers check its return value. Make it return void. Signed-off-by: Viresh Kumar --- drivers/cpufreq/cpufreq_stats.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) -- 2.15.0.194.g9af6a3dea062 diff --git a/drivers/cpufreq/cpufreq_stats.c b/drivers/cpufreq/cpufreq_stats.c index 1e55b5790853..1572129844a5 100644 --- a/drivers/cpufreq/cpufreq_stats.c +++ b/drivers/cpufreq/cpufreq_stats.c @@ -27,7 +27,7 @@ struct cpufreq_stats { unsigned int *trans_table; }; -static int cpufreq_stats_update(struct cpufreq_stats *stats) +static void cpufreq_stats_update(struct cpufreq_stats *stats) { unsigned long long cur_time = get_jiffies_64(); @@ -35,7 +35,6 @@ static int cpufreq_stats_update(struct cpufreq_stats *stats) stats->time_in_state[stats->last_index] += cur_time - stats->last_time; stats->last_time = cur_time; spin_unlock(&cpufreq_stats_lock); - return 0; } static void cpufreq_stats_clear_table(struct cpufreq_stats *stats)