From patchwork Sat Mar 12 04:40:10 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yong Zhang X-Patchwork-Id: 633591 Received: from smtp1.linux-foundation.org (smtp1.linux-foundation.org [140.211.169.13]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p2EFH3St002953 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL) for ; Mon, 14 Mar 2011 15:17:24 GMT Received: from daredevil.linux-foundation.org (localhost [127.0.0.1]) by smtp1.linux-foundation.org (8.14.2/8.13.5/Debian-3ubuntu1.1) with ESMTP id p2EFEMj7016337; Mon, 14 Mar 2011 08:15:12 -0700 Received: from mail-pw0-f47.google.com (mail-pw0-f47.google.com [209.85.160.47]) by smtp1.linux-foundation.org (8.14.2/8.13.5/Debian-3ubuntu1.1) with ESMTP id p2C4eTJ1019220 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=FAIL) for ; Fri, 11 Mar 2011 20:40:30 -0800 Received: by pwj9 with SMTP id 9so576598pwj.6 for ; Fri, 11 Mar 2011 20:40:29 -0800 (PST) Received: by 10.142.156.17 with SMTP id d17mr1048971wfe.210.1299904829251; Fri, 11 Mar 2011 20:40:29 -0800 (PST) Received: from localhost ([125.33.200.255]) by mx.google.com with ESMTPS id z8sm6333082wfj.1.2011.03.11.20.40.17 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 11 Mar 2011 20:40:28 -0800 (PST) Date: Sat, 12 Mar 2011 12:40:10 +0800 From: Yong Zhang To: Thomas Renninger Message-ID: <20110312044010.GB3634@zhy> References: <201103111247.00212.trenn@suse.de> <20110312043409.GA3634@zhy> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20110312043409.GA3634@zhy> User-Agent: Mutt/1.5.20 (2009-06-14) Received-SPF: pass (localhost is always allowed.) X-Spam-Status: No, hits=-4.374 required=5 tests=AWL, BAYES_00, OSDL_HEADER_SPF_PASS, OSDL_HEADER_SUBJECT_BRACKETED X-Spam-Checker-Version: SpamAssassin 3.2.4-osdl_revision__1.47__ X-MIMEDefang-Filter: lf$Revision: 1.188 $ X-Scanned-By: MIMEDefang 2.63 on 140.211.169.21 X-Mailman-Approved-At: Mon, 14 Mar 2011 07:47:13 -0700 Cc: Mattia Dongili , dri-devel@lists.freedesktop.org, Ingo Molnar , linux-kernel@vger.kernel.org, cpufreq@vger.kernel.org, linux-acpi@vger.kernel.org, linux@dominikbrodowski.net, discuss@lesswatts.org, linux-pm@lists.linux-foundation.org, linux-omap@vger.kernel.org, power@bughost.org Subject: Re: [linux-pm] [ANNOUNCE] cpupowerutils - cpufrequtils extended with quite some features X-BeenThere: linux-pm@lists.linux-foundation.org X-Mailman-Version: 2.1.9 Precedence: list Reply-To: Yong Zhang List-Id: Linux power management List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-pm-bounces@lists.linux-foundation.org Errors-To: linux-pm-bounces@lists.linux-foundation.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Mon, 14 Mar 2011 15:17:24 +0000 (UTC) --- utils/helpers/sysfs-orig.c 2011-03-12 12:32:06.179827929 +0800 +++ utils/helpers/sysfs.c 2011-03-12 12:35:21.512796546 +0800 @@ -111,7 +111,7 @@ unsigned int idlestate, enum idlestate_value which) { - unsigned long value; + unsigned long long value; unsigned int len; char linebuf[MAX_LINE_LEN]; char *endp; @@ -126,7 +126,7 @@ return 0; } - value = strtoul(linebuf, &endp, 0); + value = strtoull(linebuf, &endp, 0); if ( endp == linebuf || errno == ERANGE ) return 0;