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: 629891 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p2C8TDSg017624 for ; Sat, 12 Mar 2011 08:29:34 GMT Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 59F0F9EC60 for ; Sat, 12 Mar 2011 00:29:13 -0800 (PST) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-pv0-f177.google.com (mail-pv0-f177.google.com [74.125.83.177]) by gabe.freedesktop.org (Postfix) with ESMTP id B637B9E752 for ; Fri, 11 Mar 2011 20:40:29 -0800 (PST) Received: by pvh11 with SMTP id 11so666002pvh.36 for ; Fri, 11 Mar 2011 20:40:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:date:from:to:cc:subject:message-id:reply-to :references:mime-version:content-type:content-disposition :in-reply-to:user-agent; bh=7hUEM91GtoT865Zo2TwPM94MZreAUEMvCT8GzP4lajQ=; b=FHCHMQpHi34pEKIVrXALCbfR4DC6YoCIUrLhuG/rOc2KJwjHLQAgRwFRdp34k+tYsh JW11New/L0mR//o6c3pbRZKxjwR8zOH5qvCmemfdmYRi3Oz4WrU4vxluBnsZW5caHjRP mhzrt6BrXIcQG8XuOr3Hz2vK+9TmELtCLRvXs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:reply-to:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; b=IQDAfyXLm0HFUL2f4HWf9rKSm8X2fcNhIpau27f7H87pl3YoDOBILyaISWbb28O6GH fjs3Fc6l/1tlwkhA8Bk7/CVduF/cfD4HsGmgvgDqEA/l5SCg1Y+Q5CzASRdTY2Cnh44w jgGp1ccaWliSbmtqhNCxQ4+r9uciuvhZEzpBk= 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 Subject: Re: [ANNOUNCE] cpupowerutils - cpufrequtils extended with quite some features 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) X-Mailman-Approved-At: Sat, 12 Mar 2011 00:26:50 -0800 Cc: Mattia Dongili , dri-devel@lists.freedesktop.org, herrmann.der.user@googlemail.com, 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, Len Brown X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: Yong Zhang List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dri-devel-bounces+patchwork-dri-devel=patchwork.kernel.org@lists.freedesktop.org Errors-To: dri-devel-bounces+patchwork-dri-devel=patchwork.kernel.org@lists.freedesktop.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Sat, 12 Mar 2011 08:29:35 +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;