From: Dave Jones Subject: Re: [PATCH] (1/3) cpufreq_ondemand - 01_ignore-nice.diff Date: Tue, 10 May 2005 21:30:45 -0400 Message-ID: <20050511013044.GA8039@redhat.com> References: <20050510223031.GA4478@inskipp> Mime-Version: 1.0 Return-path: Content-Disposition: inline In-Reply-To: <20050510223031.GA4478@inskipp> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: cpufreq-bounces@lists.linux.org.uk Errors-To: cpufreq-bounces+glkc-cpufreq=m.gmane.org@lists.linux.org.uk Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Alexander Clouter Cc: cpufreq@lists.linux.org.uk, linux@dominikbrodowski.de, alex-kernel@digriz.org.uk On Tue, May 10, 2005 at 11:30:31PM +0100, Alexander Clouter wrote: > Adds support to cpufreq_ondemand to ignore 'nice' cpu time > > Signed-off-by: Alexander Clouter > quoted-printable (more like unprintable) patches tend to get horribly mangled. This is what they ended up like.. @@ -193,6 +195,46 @@ return count; } =20 +static ssize_t store_ignore_nice(struct cpufreq_policy *policy, + const char *buf, size_t count) +{ + unsigned int input; + int ret; + + unsigned int j; +=09 + ret =3D sscanf (buf, "%u", &input); + if ( ret !=3D 1 ) + return -EINVAL; + + if ( input > 1 ) + input =3D 1; +=09 (Note the =20/09 crap) Please resend with a different mailer if necessary. Dave