~ubuntu-branches/ubuntu/karmic/linux-mvl-dove/karmic-proposed

« back to all changes in this revision

Viewing changes to arch/x86/kernel/cpu/cpufreq/speedstep-centrino.c

  • Committer: Bazaar Package Importer
  • Author(s): Stefan Bader
  • Date: 2010-03-10 22:24:12 UTC
  • mto: (15.1.2 karmic-security)
  • mto: This revision was merged to the branch mainline in revision 18.
  • Revision ID: james.westby@ubuntu.com-20100310222412-k86m3r53jw0je7x1
Tags: upstream-2.6.31
ImportĀ upstreamĀ versionĀ 2.6.31

Show diffs side-by-side

added added

removed removed

Lines of Context:
45
45
        CPU_DOTHAN_A1,
46
46
        CPU_DOTHAN_A2,
47
47
        CPU_DOTHAN_B0,
48
 
        CPU_DOTHAN_C0,
49
48
        CPU_MP4HT_D0,
50
49
        CPU_MP4HT_E0,
51
50
};
55
54
        [CPU_DOTHAN_A1] = { 6, 13, 1 },
56
55
        [CPU_DOTHAN_A2] = { 6, 13, 2 },
57
56
        [CPU_DOTHAN_B0] = { 6, 13, 6 },
58
 
        [CPU_DOTHAN_C0] = { 6, 13, 8 },
59
57
        [CPU_MP4HT_D0]  = {15,  3, 4 },
60
58
        [CPU_MP4HT_E0]  = {15,  4, 1 },
61
59
};
198
196
};
199
197
#undef OP
200
198
 
201
 
 
202
 
#define OPEX(mhz, base, mva, mvb, mvc, mvd)                     \
203
 
{                                                               \
204
 
        .frequency = (mhz) * 1000,                              \
205
 
        .index = (((mhz)/(base)) << 8) | ((mva - 700) / 16)     \
206
 
}
207
 
 
208
 
/* Intel Pentium M processor 730 / 1.60 GHz (Sonoma) */
209
 
static struct cpufreq_frequency_table sonoma_1596[] =
210
 
{
211
 
        OPEX( 798, 133,  988,  988,  988,  988),
212
 
        OPEX(1064, 133, 1116, 1111, 1084, 1079),
213
 
        OPEX(1330, 133, 1244, 1233, 1180, 1169),
214
 
        OPEX(1596, 133, 1356, 1356, 1260, 1260),
215
 
        { .frequency = CPUFREQ_TABLE_END }
216
 
};
217
 
 
218
 
/* Intel Pentium M processor 740 / 1.73 GHz (Sonoma) */
219
 
static struct cpufreq_frequency_table sonoma_1729[] =
220
 
{
221
 
        OPEX( 798, 133,  988,  988,  988,  988),
222
 
        OPEX(1064, 133, 1100, 1093, 1068, 1066),
223
 
        OPEX(1330, 133, 1212, 1198, 1148, 1143),
224
 
        OPEX(1729, 133, 1356, 1356, 1260, 1260),
225
 
        { .frequency = CPUFREQ_TABLE_END }
226
 
};
227
 
 
228
 
/* Intel Pentium M processor 750 / 1.86 GHz (Sonoma) */
229
 
static struct cpufreq_frequency_table sonoma_1862[] =
230
 
{
231
 
        OPEX( 798, 133,  988,  988,  988,  988),
232
 
        OPEX(1064, 133, 1084, 1080, 1068, 1056),
233
 
        OPEX(1330, 133, 1180, 1172, 1132, 1124),
234
 
        OPEX(1596, 133, 1276, 1264, 1196, 1192),
235
 
        OPEX(1862, 133, 1356, 1356, 1260, 1260),
236
 
        { .frequency = CPUFREQ_TABLE_END }
237
 
};
238
 
 
239
 
/* Intel Pentium M processor 760 / 2.00 GHz (Sonoma) */
240
 
static struct cpufreq_frequency_table sonoma_1995[] =
241
 
{
242
 
        OPEX( 798, 133, 988, 988, 988, 988),
243
 
        OPEX(1064, 133, 1084, 1070, 1052, 1048),
244
 
        OPEX(1330, 133, 1164, 1152, 1116, 1109),
245
 
        OPEX(1596, 133, 1244, 1233, 1180, 1169),
246
 
        OPEX(1995, 133, 1356, 1356, 1260, 1260),
247
 
        { .frequency = CPUFREQ_TABLE_END }
248
 
};
249
 
/* Intel Pentium M processor 770 / 2.13 GHz (Sonoma) */
250
 
static struct cpufreq_frequency_table sonoma_2128[] =
251
 
{
252
 
        OPEX( 798, 133, 988, 988, 988, 988),
253
 
        OPEX(1064, 133, 1068, 1065, 1052, 1042),
254
 
        OPEX(1330, 133, 1148, 1142, 1100, 1097),
255
 
        OPEX(1596, 133, 1228, 1218, 1164, 1151),
256
 
        OPEX(1862, 133, 1308, 1295, 1212, 1206),
257
 
        OPEX(2128, 133, 1372, 1372, 1260, 1260),
258
 
        { .frequency = CPUFREQ_TABLE_END }
259
 
};
260
 
 
261
 
/* Intel Pentium M processor 780 / 2.26 GHz (Sonoma) */
262
 
static struct cpufreq_frequency_table sonoma_2261[] =
263
 
{
264
 
        OPEX( 798, 133, 988, 988, 988, 988),
265
 
        OPEX(1064, 133, 1068, 1064, 1052, 1037),
266
 
        OPEX(1330, 133, 1148, 1139, 1100, 1087),
267
 
        OPEX(1596, 133, 1228, 1215, 1148, 1136),
268
 
        OPEX(1862, 133, 1292, 1291, 1196, 1186),
269
 
        OPEX(2261, 133, 1404, 1404, 1260, 1260),
270
 
        { .frequency = CPUFREQ_TABLE_END }
271
 
};
272
 
 
273
 
#undef OPEX
274
 
 
275
 
#define SONOMA(cpuid, max, base, name)  \
276
 
{       .cpu_id         = cpuid,        \
277
 
        .model_name     = "Intel(R) Pentium(R) M processor " name "GHz", \
278
 
        .max_freq       = (max)*1000,   \
279
 
        .op_points      = sonoma_##max, \
280
 
}
281
 
 
282
 
 
283
199
#define _BANIAS(cpuid, max, name)       \
284
200
{       .cpu_id         = cpuid,        \
285
201
        .model_name     = "Intel(R) Pentium(R) M processor " name "MHz", \
302
218
        BANIAS(1600),
303
219
        BANIAS(1700),
304
220
 
305
 
        /* Builtin tables for Dothan C0 CPUs, a.k.a Sonoma */
306
 
        SONOMA(&cpu_ids[CPU_DOTHAN_C0], 1596, 133, "1.60"),
307
 
        SONOMA(&cpu_ids[CPU_DOTHAN_C0], 1729, 133, "1.73"),
308
 
        SONOMA(&cpu_ids[CPU_DOTHAN_C0], 1862, 133, "1.86"),
309
 
        SONOMA(&cpu_ids[CPU_DOTHAN_C0], 1995, 133, "2.00"),
310
 
        SONOMA(&cpu_ids[CPU_DOTHAN_C0], 2128, 133, "2.13"),
311
 
        SONOMA(&cpu_ids[CPU_DOTHAN_C0], 2261, 133, "2.26"),
312
 
 
313
 
 
314
221
        /* NULL model_name is a wildcard */
315
222
        { &cpu_ids[CPU_DOTHAN_A1], NULL, 0, NULL },
316
223
        { &cpu_ids[CPU_DOTHAN_A2], NULL, 0, NULL },