lparcfg.c 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627
  1. /*
  2. * PowerPC64 LPAR Configuration Information Driver
  3. *
  4. * Dave Engebretsen engebret@us.ibm.com
  5. * Copyright (c) 2003 Dave Engebretsen
  6. * Will Schmidt willschm@us.ibm.com
  7. * SPLPAR updates, Copyright (c) 2003 Will Schmidt IBM Corporation.
  8. * seq_file updates, Copyright (c) 2004 Will Schmidt IBM Corporation.
  9. * Nathan Lynch nathanl@austin.ibm.com
  10. * Added lparcfg_write, Copyright (C) 2004 Nathan Lynch IBM Corporation.
  11. *
  12. * This program is free software; you can redistribute it and/or
  13. * modify it under the terms of the GNU General Public License
  14. * as published by the Free Software Foundation; either version
  15. * 2 of the License, or (at your option) any later version.
  16. *
  17. * This driver creates a proc file at /proc/ppc64/lparcfg which contains
  18. * keyword - value pairs that specify the configuration of the partition.
  19. */
  20. #include <linux/module.h>
  21. #include <linux/types.h>
  22. #include <linux/errno.h>
  23. #include <linux/proc_fs.h>
  24. #include <linux/init.h>
  25. #include <linux/seq_file.h>
  26. #include <asm/uaccess.h>
  27. #include <asm/iseries/hv_lp_config.h>
  28. #include <asm/lppaca.h>
  29. #include <asm/hvcall.h>
  30. #include <asm/firmware.h>
  31. #include <asm/rtas.h>
  32. #include <asm/system.h>
  33. #include <asm/time.h>
  34. #include <asm/prom.h>
  35. #include <asm/vdso_datapage.h>
  36. #define MODULE_VERS "1.7"
  37. #define MODULE_NAME "lparcfg"
  38. /* #define LPARCFG_DEBUG */
  39. static struct proc_dir_entry *proc_ppc64_lparcfg;
  40. #define LPARCFG_BUFF_SIZE 4096
  41. /*
  42. * Track sum of all purrs across all processors. This is used to further
  43. * calculate usage values by different applications
  44. */
  45. static unsigned long get_purr(void)
  46. {
  47. unsigned long sum_purr = 0;
  48. int cpu;
  49. for_each_possible_cpu(cpu) {
  50. if (firmware_has_feature(FW_FEATURE_ISERIES))
  51. sum_purr += lppaca[cpu].emulated_time_base;
  52. else {
  53. struct cpu_usage *cu;
  54. cu = &per_cpu(cpu_usage_array, cpu);
  55. sum_purr += cu->current_tb;
  56. }
  57. }
  58. return sum_purr;
  59. }
  60. #ifdef CONFIG_PPC_ISERIES
  61. /*
  62. * Methods used to fetch LPAR data when running on an iSeries platform.
  63. */
  64. static int iseries_lparcfg_data(struct seq_file *m, void *v)
  65. {
  66. unsigned long pool_id;
  67. int shared, entitled_capacity, max_entitled_capacity;
  68. int processors, max_processors;
  69. unsigned long purr = get_purr();
  70. shared = (int)(get_lppaca()->shared_proc);
  71. seq_printf(m, "system_active_processors=%d\n",
  72. (int)HvLpConfig_getSystemPhysicalProcessors());
  73. seq_printf(m, "system_potential_processors=%d\n",
  74. (int)HvLpConfig_getSystemPhysicalProcessors());
  75. processors = (int)HvLpConfig_getPhysicalProcessors();
  76. seq_printf(m, "partition_active_processors=%d\n", processors);
  77. max_processors = (int)HvLpConfig_getMaxPhysicalProcessors();
  78. seq_printf(m, "partition_potential_processors=%d\n", max_processors);
  79. if (shared) {
  80. entitled_capacity = HvLpConfig_getSharedProcUnits();
  81. max_entitled_capacity = HvLpConfig_getMaxSharedProcUnits();
  82. } else {
  83. entitled_capacity = processors * 100;
  84. max_entitled_capacity = max_processors * 100;
  85. }
  86. seq_printf(m, "partition_entitled_capacity=%d\n", entitled_capacity);
  87. seq_printf(m, "partition_max_entitled_capacity=%d\n",
  88. max_entitled_capacity);
  89. if (shared) {
  90. pool_id = HvLpConfig_getSharedPoolIndex();
  91. seq_printf(m, "pool=%d\n", (int)pool_id);
  92. seq_printf(m, "pool_capacity=%d\n",
  93. (int)(HvLpConfig_getNumProcsInSharedPool(pool_id) *
  94. 100));
  95. seq_printf(m, "purr=%ld\n", purr);
  96. }
  97. seq_printf(m, "shared_processor_mode=%d\n", shared);
  98. return 0;
  99. }
  100. #else /* CONFIG_PPC_ISERIES */
  101. static int iseries_lparcfg_data(struct seq_file *m, void *v)
  102. {
  103. return 0;
  104. }
  105. #endif /* CONFIG_PPC_ISERIES */
  106. #ifdef CONFIG_PPC_PSERIES
  107. /*
  108. * Methods used to fetch LPAR data when running on a pSeries platform.
  109. */
  110. static void log_plpar_hcall_return(unsigned long rc, char *tag)
  111. {
  112. switch(rc) {
  113. case 0:
  114. return;
  115. case H_HARDWARE:
  116. printk(KERN_INFO "plpar-hcall (%s) "
  117. "Hardware fault\n", tag);
  118. return;
  119. case H_FUNCTION:
  120. printk(KERN_INFO "plpar-hcall (%s) "
  121. "Function not allowed\n", tag);
  122. return;
  123. case H_AUTHORITY:
  124. printk(KERN_INFO "plpar-hcall (%s) "
  125. "Not authorized to this function\n", tag);
  126. return;
  127. case H_PARAMETER:
  128. printk(KERN_INFO "plpar-hcall (%s) "
  129. "Bad parameter(s)\n",tag);
  130. return;
  131. default:
  132. printk(KERN_INFO "plpar-hcall (%s) "
  133. "Unexpected rc(0x%lx)\n", tag, rc);
  134. }
  135. }
  136. /*
  137. * H_GET_PPP hcall returns info in 4 parms.
  138. * entitled_capacity,unallocated_capacity,
  139. * aggregation, resource_capability).
  140. *
  141. * R4 = Entitled Processor Capacity Percentage.
  142. * R5 = Unallocated Processor Capacity Percentage.
  143. * R6 (AABBCCDDEEFFGGHH).
  144. * XXXX - reserved (0)
  145. * XXXX - reserved (0)
  146. * XXXX - Group Number
  147. * XXXX - Pool Number.
  148. * R7 (IIJJKKLLMMNNOOPP).
  149. * XX - reserved. (0)
  150. * XX - bit 0-6 reserved (0). bit 7 is Capped indicator.
  151. * XX - variable processor Capacity Weight
  152. * XX - Unallocated Variable Processor Capacity Weight.
  153. * XXXX - Active processors in Physical Processor Pool.
  154. * XXXX - Processors active on platform.
  155. */
  156. static unsigned int h_get_ppp(unsigned long *entitled,
  157. unsigned long *unallocated,
  158. unsigned long *aggregation,
  159. unsigned long *resource)
  160. {
  161. unsigned long rc;
  162. unsigned long retbuf[PLPAR_HCALL_BUFSIZE];
  163. rc = plpar_hcall(H_GET_PPP, retbuf);
  164. *entitled = retbuf[0];
  165. *unallocated = retbuf[1];
  166. *aggregation = retbuf[2];
  167. *resource = retbuf[3];
  168. log_plpar_hcall_return(rc, "H_GET_PPP");
  169. return rc;
  170. }
  171. static void h_pic(unsigned long *pool_idle_time, unsigned long *num_procs)
  172. {
  173. unsigned long rc;
  174. unsigned long retbuf[PLPAR_HCALL_BUFSIZE];
  175. rc = plpar_hcall(H_PIC, retbuf);
  176. *pool_idle_time = retbuf[0];
  177. *num_procs = retbuf[1];
  178. if (rc != H_AUTHORITY)
  179. log_plpar_hcall_return(rc, "H_PIC");
  180. }
  181. #define SPLPAR_CHARACTERISTICS_TOKEN 20
  182. #define SPLPAR_MAXLENGTH 1026*(sizeof(char))
  183. /*
  184. * parse_system_parameter_string()
  185. * Retrieve the potential_processors, max_entitled_capacity and friends
  186. * through the get-system-parameter rtas call. Replace keyword strings as
  187. * necessary.
  188. */
  189. static void parse_system_parameter_string(struct seq_file *m)
  190. {
  191. int call_status;
  192. unsigned char *local_buffer = kmalloc(SPLPAR_MAXLENGTH, GFP_KERNEL);
  193. if (!local_buffer) {
  194. printk(KERN_ERR "%s %s kmalloc failure at line %d \n",
  195. __FILE__, __FUNCTION__, __LINE__);
  196. return;
  197. }
  198. spin_lock(&rtas_data_buf_lock);
  199. memset(rtas_data_buf, 0, SPLPAR_MAXLENGTH);
  200. call_status = rtas_call(rtas_token("ibm,get-system-parameter"), 3, 1,
  201. NULL,
  202. SPLPAR_CHARACTERISTICS_TOKEN,
  203. __pa(rtas_data_buf),
  204. RTAS_DATA_BUF_SIZE);
  205. memcpy(local_buffer, rtas_data_buf, SPLPAR_MAXLENGTH);
  206. spin_unlock(&rtas_data_buf_lock);
  207. if (call_status != 0) {
  208. printk(KERN_INFO
  209. "%s %s Error calling get-system-parameter (0x%x)\n",
  210. __FILE__, __FUNCTION__, call_status);
  211. } else {
  212. int splpar_strlen;
  213. int idx, w_idx;
  214. char *workbuffer = kmalloc(SPLPAR_MAXLENGTH, GFP_KERNEL);
  215. if (!workbuffer) {
  216. printk(KERN_ERR "%s %s kmalloc failure at line %d \n",
  217. __FILE__, __FUNCTION__, __LINE__);
  218. kfree(local_buffer);
  219. return;
  220. }
  221. #ifdef LPARCFG_DEBUG
  222. printk(KERN_INFO "success calling get-system-parameter \n");
  223. #endif
  224. splpar_strlen = local_buffer[0] * 256 + local_buffer[1];
  225. local_buffer += 2; /* step over strlen value */
  226. memset(workbuffer, 0, SPLPAR_MAXLENGTH);
  227. w_idx = 0;
  228. idx = 0;
  229. while ((*local_buffer) && (idx < splpar_strlen)) {
  230. workbuffer[w_idx++] = local_buffer[idx++];
  231. if ((local_buffer[idx] == ',')
  232. || (local_buffer[idx] == '\0')) {
  233. workbuffer[w_idx] = '\0';
  234. if (w_idx) {
  235. /* avoid the empty string */
  236. seq_printf(m, "%s\n", workbuffer);
  237. }
  238. memset(workbuffer, 0, SPLPAR_MAXLENGTH);
  239. idx++; /* skip the comma */
  240. w_idx = 0;
  241. } else if (local_buffer[idx] == '=') {
  242. /* code here to replace workbuffer contents
  243. with different keyword strings */
  244. if (0 == strcmp(workbuffer, "MaxEntCap")) {
  245. strcpy(workbuffer,
  246. "partition_max_entitled_capacity");
  247. w_idx = strlen(workbuffer);
  248. }
  249. if (0 == strcmp(workbuffer, "MaxPlatProcs")) {
  250. strcpy(workbuffer,
  251. "system_potential_processors");
  252. w_idx = strlen(workbuffer);
  253. }
  254. }
  255. }
  256. kfree(workbuffer);
  257. local_buffer -= 2; /* back up over strlen value */
  258. }
  259. kfree(local_buffer);
  260. }
  261. /* Return the number of processors in the system.
  262. * This function reads through the device tree and counts
  263. * the virtual processors, this does not include threads.
  264. */
  265. static int lparcfg_count_active_processors(void)
  266. {
  267. struct device_node *cpus_dn = NULL;
  268. int count = 0;
  269. while ((cpus_dn = of_find_node_by_type(cpus_dn, "cpu"))) {
  270. #ifdef LPARCFG_DEBUG
  271. printk(KERN_ERR "cpus_dn %p \n", cpus_dn);
  272. #endif
  273. count++;
  274. }
  275. return count;
  276. }
  277. static int pseries_lparcfg_data(struct seq_file *m, void *v)
  278. {
  279. int partition_potential_processors;
  280. int partition_active_processors;
  281. struct device_node *rtas_node;
  282. const int *lrdrp = NULL;
  283. rtas_node = of_find_node_by_path("/rtas");
  284. if (rtas_node)
  285. lrdrp = of_get_property(rtas_node, "ibm,lrdr-capacity", NULL);
  286. if (lrdrp == NULL) {
  287. partition_potential_processors = vdso_data->processorCount;
  288. } else {
  289. partition_potential_processors = *(lrdrp + 4);
  290. }
  291. of_node_put(rtas_node);
  292. partition_active_processors = lparcfg_count_active_processors();
  293. if (firmware_has_feature(FW_FEATURE_SPLPAR)) {
  294. unsigned long h_entitled, h_unallocated;
  295. unsigned long h_aggregation, h_resource;
  296. unsigned long pool_idle_time, pool_procs;
  297. unsigned long purr;
  298. h_get_ppp(&h_entitled, &h_unallocated, &h_aggregation,
  299. &h_resource);
  300. seq_printf(m, "R4=0x%lx\n", h_entitled);
  301. seq_printf(m, "R5=0x%lx\n", h_unallocated);
  302. seq_printf(m, "R6=0x%lx\n", h_aggregation);
  303. seq_printf(m, "R7=0x%lx\n", h_resource);
  304. purr = get_purr();
  305. /* this call handles the ibm,get-system-parameter contents */
  306. parse_system_parameter_string(m);
  307. seq_printf(m, "partition_entitled_capacity=%ld\n", h_entitled);
  308. seq_printf(m, "group=%ld\n", (h_aggregation >> 2 * 8) & 0xffff);
  309. seq_printf(m, "system_active_processors=%ld\n",
  310. (h_resource >> 0 * 8) & 0xffff);
  311. /* pool related entries are apropriate for shared configs */
  312. if (lppaca[0].shared_proc) {
  313. h_pic(&pool_idle_time, &pool_procs);
  314. seq_printf(m, "pool=%ld\n",
  315. (h_aggregation >> 0 * 8) & 0xffff);
  316. /* report pool_capacity in percentage */
  317. seq_printf(m, "pool_capacity=%ld\n",
  318. ((h_resource >> 2 * 8) & 0xffff) * 100);
  319. seq_printf(m, "pool_idle_time=%ld\n", pool_idle_time);
  320. seq_printf(m, "pool_num_procs=%ld\n", pool_procs);
  321. }
  322. seq_printf(m, "unallocated_capacity_weight=%ld\n",
  323. (h_resource >> 4 * 8) & 0xFF);
  324. seq_printf(m, "capacity_weight=%ld\n",
  325. (h_resource >> 5 * 8) & 0xFF);
  326. seq_printf(m, "capped=%ld\n", (h_resource >> 6 * 8) & 0x01);
  327. seq_printf(m, "unallocated_capacity=%ld\n", h_unallocated);
  328. seq_printf(m, "purr=%ld\n", purr);
  329. } else { /* non SPLPAR case */
  330. seq_printf(m, "system_active_processors=%d\n",
  331. partition_potential_processors);
  332. seq_printf(m, "system_potential_processors=%d\n",
  333. partition_potential_processors);
  334. seq_printf(m, "partition_max_entitled_capacity=%d\n",
  335. partition_potential_processors * 100);
  336. seq_printf(m, "partition_entitled_capacity=%d\n",
  337. partition_active_processors * 100);
  338. }
  339. seq_printf(m, "partition_active_processors=%d\n",
  340. partition_active_processors);
  341. seq_printf(m, "partition_potential_processors=%d\n",
  342. partition_potential_processors);
  343. seq_printf(m, "shared_processor_mode=%d\n", lppaca[0].shared_proc);
  344. return 0;
  345. }
  346. /*
  347. * Interface for changing system parameters (variable capacity weight
  348. * and entitled capacity). Format of input is "param_name=value";
  349. * anything after value is ignored. Valid parameters at this time are
  350. * "partition_entitled_capacity" and "capacity_weight". We use
  351. * H_SET_PPP to alter parameters.
  352. *
  353. * This function should be invoked only on systems with
  354. * FW_FEATURE_SPLPAR.
  355. */
  356. static ssize_t lparcfg_write(struct file *file, const char __user * buf,
  357. size_t count, loff_t * off)
  358. {
  359. char *kbuf;
  360. char *tmp;
  361. u64 new_entitled, *new_entitled_ptr = &new_entitled;
  362. u8 new_weight, *new_weight_ptr = &new_weight;
  363. unsigned long current_entitled; /* parameters for h_get_ppp */
  364. unsigned long dummy;
  365. unsigned long resource;
  366. u8 current_weight;
  367. ssize_t retval = -ENOMEM;
  368. if (!firmware_has_feature(FW_FEATURE_SPLPAR) ||
  369. firmware_has_feature(FW_FEATURE_ISERIES))
  370. return -EINVAL;
  371. kbuf = kmalloc(count, GFP_KERNEL);
  372. if (!kbuf)
  373. goto out;
  374. retval = -EFAULT;
  375. if (copy_from_user(kbuf, buf, count))
  376. goto out;
  377. retval = -EINVAL;
  378. kbuf[count - 1] = '\0';
  379. tmp = strchr(kbuf, '=');
  380. if (!tmp)
  381. goto out;
  382. *tmp++ = '\0';
  383. if (!strcmp(kbuf, "partition_entitled_capacity")) {
  384. char *endp;
  385. *new_entitled_ptr = (u64) simple_strtoul(tmp, &endp, 10);
  386. if (endp == tmp)
  387. goto out;
  388. new_weight_ptr = &current_weight;
  389. } else if (!strcmp(kbuf, "capacity_weight")) {
  390. char *endp;
  391. *new_weight_ptr = (u8) simple_strtoul(tmp, &endp, 10);
  392. if (endp == tmp)
  393. goto out;
  394. new_entitled_ptr = &current_entitled;
  395. } else
  396. goto out;
  397. /* Get our current parameters */
  398. retval = h_get_ppp(&current_entitled, &dummy, &dummy, &resource);
  399. if (retval) {
  400. retval = -EIO;
  401. goto out;
  402. }
  403. current_weight = (resource >> 5 * 8) & 0xFF;
  404. pr_debug("%s: current_entitled = %lu, current_weight = %u\n",
  405. __FUNCTION__, current_entitled, current_weight);
  406. pr_debug("%s: new_entitled = %lu, new_weight = %u\n",
  407. __FUNCTION__, *new_entitled_ptr, *new_weight_ptr);
  408. retval = plpar_hcall_norets(H_SET_PPP, *new_entitled_ptr,
  409. *new_weight_ptr);
  410. if (retval == H_SUCCESS || retval == H_CONSTRAINED) {
  411. retval = count;
  412. } else if (retval == H_BUSY) {
  413. retval = -EBUSY;
  414. } else if (retval == H_HARDWARE) {
  415. retval = -EIO;
  416. } else if (retval == H_PARAMETER) {
  417. retval = -EINVAL;
  418. } else {
  419. printk(KERN_WARNING "%s: received unknown hv return code %ld",
  420. __FUNCTION__, retval);
  421. retval = -EIO;
  422. }
  423. out:
  424. kfree(kbuf);
  425. return retval;
  426. }
  427. #else /* CONFIG_PPC_PSERIES */
  428. static int pseries_lparcfg_data(struct seq_file *m, void *v)
  429. {
  430. return 0;
  431. }
  432. static ssize_t lparcfg_write(struct file *file, const char __user * buf,
  433. size_t count, loff_t * off)
  434. {
  435. return -EINVAL;
  436. }
  437. #endif /* CONFIG_PPC_PSERIES */
  438. static int lparcfg_data(struct seq_file *m, void *v)
  439. {
  440. struct device_node *rootdn;
  441. const char *model = "";
  442. const char *system_id = "";
  443. const char *tmp;
  444. const unsigned int *lp_index_ptr;
  445. unsigned int lp_index = 0;
  446. seq_printf(m, "%s %s \n", MODULE_NAME, MODULE_VERS);
  447. rootdn = of_find_node_by_path("/");
  448. if (rootdn) {
  449. tmp = of_get_property(rootdn, "model", NULL);
  450. if (tmp) {
  451. model = tmp;
  452. /* Skip "IBM," - see platforms/iseries/dt.c */
  453. if (firmware_has_feature(FW_FEATURE_ISERIES))
  454. model += 4;
  455. }
  456. tmp = of_get_property(rootdn, "system-id", NULL);
  457. if (tmp) {
  458. system_id = tmp;
  459. /* Skip "IBM," - see platforms/iseries/dt.c */
  460. if (firmware_has_feature(FW_FEATURE_ISERIES))
  461. system_id += 4;
  462. }
  463. lp_index_ptr = of_get_property(rootdn, "ibm,partition-no",
  464. NULL);
  465. if (lp_index_ptr)
  466. lp_index = *lp_index_ptr;
  467. of_node_put(rootdn);
  468. }
  469. seq_printf(m, "serial_number=%s\n", system_id);
  470. seq_printf(m, "system_type=%s\n", model);
  471. seq_printf(m, "partition_id=%d\n", (int)lp_index);
  472. if (firmware_has_feature(FW_FEATURE_ISERIES))
  473. return iseries_lparcfg_data(m, v);
  474. return pseries_lparcfg_data(m, v);
  475. }
  476. static int lparcfg_open(struct inode *inode, struct file *file)
  477. {
  478. return single_open(file, lparcfg_data, NULL);
  479. }
  480. const struct file_operations lparcfg_fops = {
  481. .owner = THIS_MODULE,
  482. .read = seq_read,
  483. .write = lparcfg_write,
  484. .open = lparcfg_open,
  485. .release = single_release,
  486. };
  487. int __init lparcfg_init(void)
  488. {
  489. struct proc_dir_entry *ent;
  490. mode_t mode = S_IRUSR | S_IRGRP | S_IROTH;
  491. /* Allow writing if we have FW_FEATURE_SPLPAR */
  492. if (firmware_has_feature(FW_FEATURE_SPLPAR) &&
  493. !firmware_has_feature(FW_FEATURE_ISERIES))
  494. mode |= S_IWUSR;
  495. ent = create_proc_entry("ppc64/lparcfg", mode, NULL);
  496. if (ent) {
  497. ent->proc_fops = &lparcfg_fops;
  498. ent->data = kmalloc(LPARCFG_BUFF_SIZE, GFP_KERNEL);
  499. if (!ent->data) {
  500. printk(KERN_ERR
  501. "Failed to allocate buffer for lparcfg\n");
  502. remove_proc_entry("lparcfg", ent->parent);
  503. return -ENOMEM;
  504. }
  505. } else {
  506. printk(KERN_ERR "Failed to create ppc64/lparcfg\n");
  507. return -EIO;
  508. }
  509. proc_ppc64_lparcfg = ent;
  510. return 0;
  511. }
  512. void __exit lparcfg_cleanup(void)
  513. {
  514. if (proc_ppc64_lparcfg) {
  515. kfree(proc_ppc64_lparcfg->data);
  516. remove_proc_entry("lparcfg", proc_ppc64_lparcfg->parent);
  517. }
  518. }
  519. module_init(lparcfg_init);
  520. module_exit(lparcfg_cleanup);
  521. MODULE_DESCRIPTION("Interface for LPAR configuration data");
  522. MODULE_AUTHOR("Dave Engebretsen");
  523. MODULE_LICENSE("GPL");