speedstep-centrino.c 15 KB

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