From patchwork Wed Nov 4 18:29:54 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicolas Pitre X-Patchwork-Id: 56003 Delivered-To: patch@linaro.org Received: by 10.112.61.134 with SMTP id p6csp2569853lbr; Wed, 4 Nov 2015 10:30:06 -0800 (PST) X-Received: by 10.68.134.135 with SMTP id pk7mr3587255pbb.67.1446661806764; Wed, 04 Nov 2015 10:30:06 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id yk4si3753210pbb.206.2015.11.04.10.30.06; Wed, 04 Nov 2015 10:30:06 -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; 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; dkim=neutral (body hash did not verify) header.i=@linaro_org.20150623.gappssmtp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1031889AbbKDSaB (ORCPT + 11 others); Wed, 4 Nov 2015 13:30:01 -0500 Received: from mail-qg0-f46.google.com ([209.85.192.46]:36469 "EHLO mail-qg0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1031863AbbKDS35 (ORCPT ); Wed, 4 Nov 2015 13:29:57 -0500 Received: by qgad10 with SMTP id d10so47487759qga.3 for ; Wed, 04 Nov 2015 10:29:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro_org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:user-agent:mime-version :content-type; bh=cTBYuKgrssruikjvhUVJvegH5+zd+fXGojwtzpDO+2A=; b=YKPuy8PZkriKckFQeDyMULHa8riwzdnbfrLvvh0k4INS3Gccm+kbWcL46MNOq5Iaao +Bvo66XaFKsr8SBe75cLK93hUkt4iN/cXKu9ri/49Le82u+9/S6pAWNEVCEv54Z/rMwz H+TA1GmQEXYEiG2bXxBlKYuC5YTzRAg7hW4e3zxcdtEavi8893wo6bWfSXWo4YM96+6l yvmujD9WS0wFBwHXkaSOEaDlGr3WocsmUgFVOiBaT6BUHi5jUudEvGmc1aCMPNZhIvgR 3q2dBweOReOZFJkXIqINyZMaXYWpYT0NxcsHblBMgxt1e+Ln81Y8Pk/vhGFP3xvUoI3u wl1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:message-id:user-agent :mime-version:content-type; bh=cTBYuKgrssruikjvhUVJvegH5+zd+fXGojwtzpDO+2A=; b=MONh2vXia+r1bR6hsNfMkVnbB27NaTXHr7WWEOekNOXm+AG2l0zYgR9lxCYdzP/eUy DsJ5c2SDADvHUNOH9Vrt806m4FNEEb2+9B+5sPUNlbXQ1lr7VS6iTzEReue9vU5L+XZD TCRhEELwzYT8aRH0Zw/4PRkAT2sK1CAZb7czPfNi/PnHFHAug+20IwoWT/8SKRp7lNKx iHvy+wJChRWZQ2MVNZ/kQW3EAtnEFLTEkdabBKyJ6eENNXjU671jHBFXo2ZKyVWkxeIx n6YULNarXrXDs/iExzkcNCBuJdaL1XuquKlQUL6sHPigoM/GVtxZ77VPKGQ1cbuvT+Me Ao1A== X-Gm-Message-State: ALoCoQkrmOW2kLyIDBUP7LVVxY/Zw3CysBxs+ptvEjRNGbB5msoL/rsiNpXIHfVi+RuhfPi0omtU X-Received: by 10.140.145.150 with SMTP id 144mr3289593qhr.82.1446661796380; Wed, 04 Nov 2015 10:29:56 -0800 (PST) Received: from xanadu.home (modemcable065.157-23-96.mc.videotron.ca. [96.23.157.65]) by smtp.gmail.com with ESMTPSA id x79sm54444qka.37.2015.11.04.10.29.54 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 04 Nov 2015 10:29:55 -0800 (PST) Date: Wed, 4 Nov 2015 13:29:54 -0500 (EST) From: Nicolas Pitre To: "Rafael J. Wysocki" , Kevin Hilman , Ulf Hansson cc: linux-pm@vger.kernel.org Subject: [PATCH] base/power/domain: fix wrong do_div() usage Message-ID: User-Agent: Alpine 2.20 (LFD 67 2015-01-07) MIME-Version: 1.0 Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org do_div() is meant to be used with an unsigned dividend. Signed-off-by: Nicolas Pitre -- To unsubscribe from this list: send the line "unsubscribe linux-pm" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/base/power/domain.c b/drivers/base/power/domain.c index 16550c63d6..5722ad73ad 100644 --- a/drivers/base/power/domain.c +++ b/drivers/base/power/domain.c @@ -142,7 +142,7 @@ static void genpd_sd_counter_inc(struct generic_pm_domain *genpd) static void genpd_recalc_cpu_exit_latency(struct generic_pm_domain *genpd) { - s64 usecs64; + u64 usecs64; if (!genpd->cpuidle_data) return;