speedstep-centrino.c 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633
  1. /*
  2. * cpufreq driver for Enhanced SpeedStep, as found in Intel's Pentium
  3. * M (part of the Centrino chipset).
  4. *
  5. * Since the original Pentium M, most new Intel CPUs support Enhanced
  6. * SpeedStep.
  7. *
  8. * Despite the "SpeedStep" in the name, this is almost entirely unlike
  9. * traditional SpeedStep.
  10. *
  11. * Modelled on speedstep.c
  12. *
  13. * Copyright (C) 2003 Jeremy Fitzhardinge <jeremy@goop.org>
  14. */
  15. #include <linux/kernel.h>
  16. #include <linux/module.h>
  17. #include <linux/init.h>
  18. #include <linux/cpufreq.h>
  19. #include <linux/sched.h> /* current */
  20. #include <linux/delay.h>
  21. #include <linux/compiler.h>
  22. #include <asm/msr.h>
  23. #include <asm/processor.h>
  24. #include <asm/cpufeature.h>
  25. #define PFX "speedstep-centrino: "
  26. #define MAINTAINER "cpufreq@lists.linux.org.uk"
  27. #define dprintk(msg...) cpufreq_debug_printk(CPUFREQ_DEBUG_DRIVER, "speedstep-centrino", msg)
  28. #define INTEL_MSR_RANGE (0xffff)
  29. struct cpu_id
  30. {
  31. __u8 x86; /* CPU family */
  32. __u8 x86_model; /* model */
  33. __u8 x86_mask; /* stepping */
  34. };
  35. enum {
  36. CPU_BANIAS,
  37. CPU_DOTHAN_A1,
  38. CPU_DOTHAN_A2,
  39. CPU_DOTHAN_B0,
  40. CPU_MP4HT_D0,
  41. CPU_MP4HT_E0,
  42. };
  43. static const struct cpu_id cpu_ids[] = {
  44. [CPU_BANIAS] = { 6, 9, 5 },
  45. [CPU_DOTHAN_A1] = { 6, 13, 1 },
  46. [CPU_DOTHAN_A2] = { 6, 13, 2 },
  47. [CPU_DOTHAN_B0] = { 6, 13, 6 },
  48. [CPU_MP4HT_D0] = {15, 3, 4 },
  49. [CPU_MP4HT_E0] = {15, 4, 1 },
  50. };
  51. #define N_IDS ARRAY_SIZE(cpu_ids)
  52. struct cpu_model
  53. {
  54. const struct cpu_id *cpu_id;
  55. const char *model_name;
  56. unsigned max_freq; /* max clock in kHz */
  57. struct cpufreq_frequency_table *op_points; /* clock/voltage pairs */
  58. };
  59. static int centrino_verify_cpu_id(const struct cpuinfo_x86 *c, const struct cpu_id *x);
  60. /* Operating points for current CPU */
  61. static struct cpu_model *centrino_model[NR_CPUS];
  62. static const struct cpu_id *centrino_cpu[NR_CPUS];
  63. static struct cpufreq_driver centrino_driver;
  64. #ifdef CONFIG_X86_SPEEDSTEP_CENTRINO_TABLE
  65. /* Computes the correct form for IA32_PERF_CTL MSR for a particular
  66. frequency/voltage operating point; frequency in MHz, volts in mV.
  67. This is stored as "index" in the structure. */
  68. #define OP(mhz, mv) \
  69. { \
  70. .frequency = (mhz) * 1000, \
  71. .index = (((mhz)/100) << 8) | ((mv - 700) / 16) \
  72. }
  73. /*
  74. * These voltage tables were derived from the Intel Pentium M
  75. * datasheet, document 25261202.pdf, Table 5. I have verified they
  76. * are consistent with my IBM ThinkPad X31, which has a 1.3GHz Pentium
  77. * M.
  78. */
  79. /* Ultra Low Voltage Intel Pentium M processor 900MHz (Banias) */
  80. static struct cpufreq_frequency_table banias_900[] =
  81. {
  82. OP(600, 844),
  83. OP(800, 988),
  84. OP(900, 1004),
  85. { .frequency = CPUFREQ_TABLE_END }
  86. };
  87. /* Ultra Low Voltage Intel Pentium M processor 1000MHz (Banias) */
  88. static struct cpufreq_frequency_table banias_1000[] =
  89. {
  90. OP(600, 844),
  91. OP(800, 972),
  92. OP(900, 988),
  93. OP(1000, 1004),
  94. { .frequency = CPUFREQ_TABLE_END }
  95. };
  96. /* Low Voltage Intel Pentium M processor 1.10GHz (Banias) */
  97. static struct cpufreq_frequency_table banias_1100[] =
  98. {
  99. OP( 600, 956),
  100. OP( 800, 1020),
  101. OP( 900, 1100),
  102. OP(1000, 1164),
  103. OP(1100, 1180),
  104. { .frequency = CPUFREQ_TABLE_END }
  105. };
  106. /* Low Voltage Intel Pentium M processor 1.20GHz (Banias) */
  107. static struct cpufreq_frequency_table banias_1200[] =
  108. {
  109. OP( 600, 956),
  110. OP( 800, 1004),
  111. OP( 900, 1020),
  112. OP(1000, 1100),
  113. OP(1100, 1164),
  114. OP(1200, 1180),
  115. { .frequency = CPUFREQ_TABLE_END }
  116. };
  117. /* Intel Pentium M processor 1.30GHz (Banias) */
  118. static struct cpufreq_frequency_table banias_1300[] =
  119. {
  120. OP( 600, 956),
  121. OP( 800, 1260),
  122. OP(1000, 1292),
  123. OP(1200, 1356),
  124. OP(1300, 1388),
  125. { .frequency = CPUFREQ_TABLE_END }
  126. };
  127. /* Intel Pentium M processor 1.40GHz (Banias) */
  128. static struct cpufreq_frequency_table banias_1400[] =
  129. {
  130. OP( 600, 956),
  131. OP( 800, 1180),
  132. OP(1000, 1308),
  133. OP(1200, 1436),
  134. OP(1400, 1484),
  135. { .frequency = CPUFREQ_TABLE_END }
  136. };
  137. /* Intel Pentium M processor 1.50GHz (Banias) */
  138. static struct cpufreq_frequency_table banias_1500[] =
  139. {
  140. OP( 600, 956),
  141. OP( 800, 1116),
  142. OP(1000, 1228),
  143. OP(1200, 1356),
  144. OP(1400, 1452),
  145. OP(1500, 1484),
  146. { .frequency = CPUFREQ_TABLE_END }
  147. };
  148. /* Intel Pentium M processor 1.60GHz (Banias) */
  149. static struct cpufreq_frequency_table banias_1600[] =
  150. {
  151. OP( 600, 956),
  152. OP( 800, 1036),
  153. OP(1000, 1164),
  154. OP(1200, 1276),
  155. OP(1400, 1420),
  156. OP(1600, 1484),
  157. { .frequency = CPUFREQ_TABLE_END }
  158. };
  159. /* Intel Pentium M processor 1.70GHz (Banias) */
  160. static struct cpufreq_frequency_table banias_1700[] =
  161. {
  162. OP( 600, 956),
  163. OP( 800, 1004),
  164. OP(1000, 1116),
  165. OP(1200, 1228),
  166. OP(1400, 1308),
  167. OP(1700, 1484),
  168. { .frequency = CPUFREQ_TABLE_END }
  169. };
  170. #undef OP
  171. #define _BANIAS(cpuid, max, name) \
  172. { .cpu_id = cpuid, \
  173. .model_name = "Intel(R) Pentium(R) M processor " name "MHz", \
  174. .max_freq = (max)*1000, \
  175. .op_points = banias_##max, \
  176. }
  177. #define BANIAS(max) _BANIAS(&cpu_ids[CPU_BANIAS], max, #max)
  178. /* CPU models, their operating frequency range, and freq/voltage
  179. operating points */
  180. static struct cpu_model models[] =
  181. {
  182. _BANIAS(&cpu_ids[CPU_BANIAS], 900, " 900"),
  183. BANIAS(1000),
  184. BANIAS(1100),
  185. BANIAS(1200),
  186. BANIAS(1300),
  187. BANIAS(1400),
  188. BANIAS(1500),
  189. BANIAS(1600),
  190. BANIAS(1700),
  191. /* NULL model_name is a wildcard */
  192. { &cpu_ids[CPU_DOTHAN_A1], NULL, 0, NULL },
  193. { &cpu_ids[CPU_DOTHAN_A2], NULL, 0, NULL },
  194. { &cpu_ids[CPU_DOTHAN_B0], NULL, 0, NULL },
  195. { &cpu_ids[CPU_MP4HT_D0], NULL, 0, NULL },
  196. { &cpu_ids[CPU_MP4HT_E0], NULL, 0, NULL },
  197. { NULL, }
  198. };
  199. #undef _BANIAS
  200. #undef BANIAS
  201. static int centrino_cpu_init_table(struct cpufreq_policy *policy)
  202. {
  203. struct cpuinfo_x86 *cpu = &cpu_data[policy->cpu];
  204. struct cpu_model *model;
  205. for(model = models; model->cpu_id != NULL; model++)
  206. if (centrino_verify_cpu_id(cpu, model->cpu_id) &&
  207. (model->model_name == NULL ||
  208. strcmp(cpu->x86_model_id, model->model_name) == 0))
  209. break;
  210. if (model->cpu_id == NULL) {
  211. /* No match at all */
  212. dprintk("no support for CPU model \"%s\": "
  213. "send /proc/cpuinfo to " MAINTAINER "\n",
  214. cpu->x86_model_id);
  215. return -ENOENT;
  216. }
  217. if (model->op_points == NULL) {
  218. /* Matched a non-match */
  219. dprintk("no table support for CPU model \"%s\"\n",
  220. cpu->x86_model_id);
  221. dprintk("try using the acpi-cpufreq driver\n");
  222. return -ENOENT;
  223. }
  224. centrino_model[policy->cpu] = model;
  225. dprintk("found \"%s\": max frequency: %dkHz\n",
  226. model->model_name, model->max_freq);
  227. return 0;
  228. }
  229. #else
  230. static inline int centrino_cpu_init_table(struct cpufreq_policy *policy) { return -ENODEV; }
  231. #endif /* CONFIG_X86_SPEEDSTEP_CENTRINO_TABLE */
  232. static int centrino_verify_cpu_id(const struct cpuinfo_x86 *c, const struct cpu_id *x)
  233. {
  234. if ((c->x86 == x->x86) &&
  235. (c->x86_model == x->x86_model) &&
  236. (c->x86_mask == x->x86_mask))
  237. return 1;
  238. return 0;
  239. }
  240. /* To be called only after centrino_model is initialized */
  241. static unsigned extract_clock(unsigned msr, unsigned int cpu, int failsafe)
  242. {
  243. int i;
  244. /*
  245. * Extract clock in kHz from PERF_CTL value
  246. * for centrino, as some DSDTs are buggy.
  247. * Ideally, this can be done using the acpi_data structure.
  248. */
  249. if ((centrino_cpu[cpu] == &cpu_ids[CPU_BANIAS]) ||
  250. (centrino_cpu[cpu] == &cpu_ids[CPU_DOTHAN_A1]) ||
  251. (centrino_cpu[cpu] == &cpu_ids[CPU_DOTHAN_B0])) {
  252. msr = (msr >> 8) & 0xff;
  253. return msr * 100000;
  254. }
  255. if ((!centrino_model[cpu]) || (!centrino_model[cpu]->op_points))
  256. return 0;
  257. msr &= 0xffff;
  258. for (i=0;centrino_model[cpu]->op_points[i].frequency != CPUFREQ_TABLE_END; i++) {
  259. if (msr == centrino_model[cpu]->op_points[i].index)
  260. return centrino_model[cpu]->op_points[i].frequency;
  261. }
  262. if (failsafe)
  263. return centrino_model[cpu]->op_points[i-1].frequency;
  264. else
  265. return 0;
  266. }
  267. /* Return the current CPU frequency in kHz */
  268. static unsigned int get_cur_freq(unsigned int cpu)
  269. {
  270. unsigned l, h;
  271. unsigned clock_freq;
  272. cpumask_t saved_mask;
  273. saved_mask = current->cpus_allowed;
  274. set_cpus_allowed(current, cpumask_of_cpu(cpu));
  275. if (smp_processor_id() != cpu)
  276. return 0;
  277. rdmsr(MSR_IA32_PERF_STATUS, l, h);
  278. clock_freq = extract_clock(l, cpu, 0);
  279. if (unlikely(clock_freq == 0)) {
  280. /*
  281. * On some CPUs, we can see transient MSR values (which are
  282. * not present in _PSS), while CPU is doing some automatic
  283. * P-state transition (like TM2). Get the last freq set
  284. * in PERF_CTL.
  285. */
  286. rdmsr(MSR_IA32_PERF_CTL, l, h);
  287. clock_freq = extract_clock(l, cpu, 1);
  288. }
  289. set_cpus_allowed(current, saved_mask);
  290. return clock_freq;
  291. }
  292. static int centrino_cpu_init(struct cpufreq_policy *policy)
  293. {
  294. struct cpuinfo_x86 *cpu = &cpu_data[policy->cpu];
  295. unsigned freq;
  296. unsigned l, h;
  297. int ret;
  298. int i;
  299. /* Only Intel makes Enhanced Speedstep-capable CPUs */
  300. if (cpu->x86_vendor != X86_VENDOR_INTEL || !cpu_has(cpu, X86_FEATURE_EST))
  301. return -ENODEV;
  302. if (cpu_has(cpu, X86_FEATURE_CONSTANT_TSC))
  303. centrino_driver.flags |= CPUFREQ_CONST_LOOPS;
  304. if (policy->cpu != 0)
  305. return -ENODEV;
  306. for (i = 0; i < N_IDS; i++)
  307. if (centrino_verify_cpu_id(cpu, &cpu_ids[i]))
  308. break;
  309. if (i != N_IDS)
  310. centrino_cpu[policy->cpu] = &cpu_ids[i];
  311. if (!centrino_cpu[policy->cpu]) {
  312. dprintk("found unsupported CPU with "
  313. "Enhanced SpeedStep: send /proc/cpuinfo to "
  314. MAINTAINER "\n");
  315. return -ENODEV;
  316. }
  317. if (centrino_cpu_init_table(policy)) {
  318. return -ENODEV;
  319. }
  320. /* Check to see if Enhanced SpeedStep is enabled, and try to
  321. enable it if not. */
  322. rdmsr(MSR_IA32_MISC_ENABLE, l, h);
  323. if (!(l & (1<<16))) {
  324. l |= (1<<16);
  325. dprintk("trying to enable Enhanced SpeedStep (%x)\n", l);
  326. wrmsr(MSR_IA32_MISC_ENABLE, l, h);
  327. /* check to see if it stuck */
  328. rdmsr(MSR_IA32_MISC_ENABLE, l, h);
  329. if (!(l & (1<<16))) {
  330. printk(KERN_INFO PFX "couldn't enable Enhanced SpeedStep\n");
  331. return -ENODEV;
  332. }
  333. }
  334. freq = get_cur_freq(policy->cpu);
  335. policy->cpuinfo.transition_latency = 10000; /* 10uS transition latency */
  336. policy->cur = freq;
  337. dprintk("centrino_cpu_init: cur=%dkHz\n", policy->cur);
  338. ret = cpufreq_frequency_table_cpuinfo(policy, centrino_model[policy->cpu]->op_points);
  339. if (ret)
  340. return (ret);
  341. cpufreq_frequency_table_get_attr(centrino_model[policy->cpu]->op_points, policy->cpu);
  342. return 0;
  343. }
  344. static int centrino_cpu_exit(struct cpufreq_policy *policy)
  345. {
  346. unsigned int cpu = policy->cpu;
  347. if (!centrino_model[cpu])
  348. return -ENODEV;
  349. cpufreq_frequency_table_put_attr(cpu);
  350. centrino_model[cpu] = NULL;
  351. return 0;
  352. }
  353. /**
  354. * centrino_verify - verifies a new CPUFreq policy
  355. * @policy: new policy
  356. *
  357. * Limit must be within this model's frequency range at least one
  358. * border included.
  359. */
  360. static int centrino_verify (struct cpufreq_policy *policy)
  361. {
  362. return cpufreq_frequency_table_verify(policy, centrino_model[policy->cpu]->op_points);
  363. }
  364. /**
  365. * centrino_setpolicy - set a new CPUFreq policy
  366. * @policy: new policy
  367. * @target_freq: the target frequency
  368. * @relation: how that frequency relates to achieved frequency (CPUFREQ_RELATION_L or CPUFREQ_RELATION_H)
  369. *
  370. * Sets a new CPUFreq policy.
  371. */
  372. static int centrino_target (struct cpufreq_policy *policy,
  373. unsigned int target_freq,
  374. unsigned int relation)
  375. {
  376. unsigned int newstate = 0;
  377. unsigned int msr, oldmsr = 0, h = 0, cpu = policy->cpu;
  378. struct cpufreq_freqs freqs;
  379. cpumask_t online_policy_cpus;
  380. cpumask_t saved_mask;
  381. cpumask_t set_mask;
  382. cpumask_t covered_cpus;
  383. int retval = 0;
  384. unsigned int j, k, first_cpu, tmp;
  385. if (unlikely(centrino_model[cpu] == NULL))
  386. return -ENODEV;
  387. if (unlikely(cpufreq_frequency_table_target(policy,
  388. centrino_model[cpu]->op_points,
  389. target_freq,
  390. relation,
  391. &newstate))) {
  392. return -EINVAL;
  393. }
  394. #ifdef CONFIG_HOTPLUG_CPU
  395. /* cpufreq holds the hotplug lock, so we are safe from here on */
  396. cpus_and(online_policy_cpus, cpu_online_map, policy->cpus);
  397. #else
  398. online_policy_cpus = policy->cpus;
  399. #endif
  400. saved_mask = current->cpus_allowed;
  401. first_cpu = 1;
  402. cpus_clear(covered_cpus);
  403. for_each_cpu_mask(j, online_policy_cpus) {
  404. /*
  405. * Support for SMP systems.
  406. * Make sure we are running on CPU that wants to change freq
  407. */
  408. cpus_clear(set_mask);
  409. if (policy->shared_type == CPUFREQ_SHARED_TYPE_ANY)
  410. cpus_or(set_mask, set_mask, online_policy_cpus);
  411. else
  412. cpu_set(j, set_mask);
  413. set_cpus_allowed(current, set_mask);
  414. preempt_disable();
  415. if (unlikely(!cpu_isset(smp_processor_id(), set_mask))) {
  416. dprintk("couldn't limit to CPUs in this domain\n");
  417. retval = -EAGAIN;
  418. if (first_cpu) {
  419. /* We haven't started the transition yet. */
  420. goto migrate_end;
  421. }
  422. preempt_enable();
  423. break;
  424. }
  425. msr = centrino_model[cpu]->op_points[newstate].index;
  426. if (first_cpu) {
  427. rdmsr(MSR_IA32_PERF_CTL, oldmsr, h);
  428. if (msr == (oldmsr & 0xffff)) {
  429. dprintk("no change needed - msr was and needs "
  430. "to be %x\n", oldmsr);
  431. retval = 0;
  432. goto migrate_end;
  433. }
  434. freqs.old = extract_clock(oldmsr, cpu, 0);
  435. freqs.new = extract_clock(msr, cpu, 0);
  436. dprintk("target=%dkHz old=%d new=%d msr=%04x\n",
  437. target_freq, freqs.old, freqs.new, msr);
  438. for_each_cpu_mask(k, online_policy_cpus) {
  439. freqs.cpu = k;
  440. cpufreq_notify_transition(&freqs,
  441. CPUFREQ_PRECHANGE);
  442. }
  443. first_cpu = 0;
  444. /* all but 16 LSB are reserved, treat them with care */
  445. oldmsr &= ~0xffff;
  446. msr &= 0xffff;
  447. oldmsr |= msr;
  448. }
  449. wrmsr(MSR_IA32_PERF_CTL, oldmsr, h);
  450. if (policy->shared_type == CPUFREQ_SHARED_TYPE_ANY) {
  451. preempt_enable();
  452. break;
  453. }
  454. cpu_set(j, covered_cpus);
  455. preempt_enable();
  456. }
  457. for_each_cpu_mask(k, online_policy_cpus) {
  458. freqs.cpu = k;
  459. cpufreq_notify_transition(&freqs, CPUFREQ_POSTCHANGE);
  460. }
  461. if (unlikely(retval)) {
  462. /*
  463. * We have failed halfway through the frequency change.
  464. * We have sent callbacks to policy->cpus and
  465. * MSRs have already been written on coverd_cpus.
  466. * Best effort undo..
  467. */
  468. if (!cpus_empty(covered_cpus)) {
  469. for_each_cpu_mask(j, covered_cpus) {
  470. set_cpus_allowed(current, cpumask_of_cpu(j));
  471. wrmsr(MSR_IA32_PERF_CTL, oldmsr, h);
  472. }
  473. }
  474. tmp = freqs.new;
  475. freqs.new = freqs.old;
  476. freqs.old = tmp;
  477. for_each_cpu_mask(j, online_policy_cpus) {
  478. freqs.cpu = j;
  479. cpufreq_notify_transition(&freqs, CPUFREQ_PRECHANGE);
  480. cpufreq_notify_transition(&freqs, CPUFREQ_POSTCHANGE);
  481. }
  482. }
  483. set_cpus_allowed(current, saved_mask);
  484. return 0;
  485. migrate_end:
  486. preempt_enable();
  487. set_cpus_allowed(current, saved_mask);
  488. return 0;
  489. }
  490. static struct freq_attr* centrino_attr[] = {
  491. &cpufreq_freq_attr_scaling_available_freqs,
  492. NULL,
  493. };
  494. static struct cpufreq_driver centrino_driver = {
  495. .name = "centrino", /* should be speedstep-centrino,
  496. but there's a 16 char limit */
  497. .init = centrino_cpu_init,
  498. .exit = centrino_cpu_exit,
  499. .verify = centrino_verify,
  500. .target = centrino_target,
  501. .get = get_cur_freq,
  502. .attr = centrino_attr,
  503. .owner = THIS_MODULE,
  504. };
  505. /**
  506. * centrino_init - initializes the Enhanced SpeedStep CPUFreq driver
  507. *
  508. * Initializes the Enhanced SpeedStep support. Returns -ENODEV on
  509. * unsupported devices, -ENOENT if there's no voltage table for this
  510. * particular CPU model, -EINVAL on problems during initiatization,
  511. * and zero on success.
  512. *
  513. * This is quite picky. Not only does the CPU have to advertise the
  514. * "est" flag in the cpuid capability flags, we look for a specific
  515. * CPU model and stepping, and we need to have the exact model name in
  516. * our voltage tables. That is, be paranoid about not releasing
  517. * someone's valuable magic smoke.
  518. */
  519. static int __init centrino_init(void)
  520. {
  521. struct cpuinfo_x86 *cpu = cpu_data;
  522. if (!cpu_has(cpu, X86_FEATURE_EST))
  523. return -ENODEV;
  524. return cpufreq_register_driver(&centrino_driver);
  525. }
  526. static void __exit centrino_exit(void)
  527. {
  528. cpufreq_unregister_driver(&centrino_driver);
  529. }
  530. MODULE_AUTHOR ("Jeremy Fitzhardinge <jeremy@goop.org>");
  531. MODULE_DESCRIPTION ("Enhanced SpeedStep driver for Intel Pentium M processors.");
  532. MODULE_LICENSE ("GPL");
  533. late_initcall(centrino_init);
  534. module_exit(centrino_exit);