Re: [PATCH] 3/3 A dynamic cpufreq governor

From: Pavel Machek
Date: Tue Oct 28 2003 - 04:28:50 EST


Hi!

> ondemand3.patch - Adding sysfs interface for cpufreq_ondemand
> tunables and making sysfs access by cpufreq governors safe against
> removal of the underlying module (from Dominik).
>
> diffstat ondemand3.patch
> cpufreq.c | 24 ++++++++++++
> cpufreq_ondemand.c | 102
> +++++++++++++++++++++++++++++++++++++++++++++++++++++
> 2 files changed, 126 insertions(+)

Is something word-wrapping your mails?

...

> +/* cpufreq_ondemand Governor Tunables */
> +#define show_one(file_name, object)
> \
> +static ssize_t show_##file_name
> \
> +(struct cpufreq_policy *unused, char *buf)
> \
> +{
> \
> + return sprintf(buf, "%u\n", dbs_tuners_ins.object);
> \
> +}
> +show_one(sampling_rate, sampling_rate);
> +show_one(up_threshold, up_threshold);
> +show_one(down_threshold, down_threshold);

?
Pavel

--
When do you have a heart between your knees?
[Johanka's followup: and *two* hearts?]
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/