Commit 1a14aeea authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] update to speedstep-centrino.c

From: Jeremy Fitzhardinge <jeremy@goop.org>

The 900MHz Pentium M has two spaces before the frequency:
"Intel(R) Pentium(R) M processor  900MHz"

This patch adds a 2nd CPU macro (_CPU) which also takes the
stringified speed so that extra spacing can be added.
parent e6238ac5
...@@ -156,14 +156,15 @@ static struct cpufreq_frequency_table op_1700[] = ...@@ -156,14 +156,15 @@ static struct cpufreq_frequency_table op_1700[] =
}; };
#undef OP #undef OP
#define CPU(max) \ #define _CPU(max, name) \
{ "Intel(R) Pentium(R) M processor " #max "MHz", (max)*1000, op_##max } { "Intel(R) Pentium(R) M processor " name "MHz", (max)*1000, op_##max }
#define CPU(max) _CPU(max, #max)
/* CPU models, their operating frequency range, and freq/voltage /* CPU models, their operating frequency range, and freq/voltage
operating points */ operating points */
static const struct cpu_model models[] = static const struct cpu_model models[] =
{ {
CPU( 900), _CPU( 900, " 900"),
CPU(1100), CPU(1100),
CPU(1200), CPU(1200),
CPU(1300), CPU(1300),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment