]> git.hungrycats.org Git - linux/commit
[PATCH] ppc64: update lparcfg to use seq_file
authorPaul Mackerras <paulus@samba.org>
Sun, 11 Jul 2004 02:29:37 +0000 (19:29 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Sun, 11 Jul 2004 02:29:37 +0000 (19:29 -0700)
commit43610b32a9f5179be7511a44392850896d5aa3f3
treea5b854409b9ebca11605a4397cab47abddbeef67
parentbade763183d1e017271bf5ef47f2d92c9677a069
[PATCH] ppc64: update lparcfg to use seq_file

From: Will Schmidt <willschm@us.ibm.com>

This patch includes updates and cleanup for the PPC64 proc/lparcfg interface.
     - use seq_file's seq_printf for output
     - remove redundant e2a function. (use viopath.c's instead)
     - change to Kconfig to allow building as a module.
     - export required symbols from LparData.c

    Pass # 2 updates..
      - Per Pauls request I've removed the vpurr references, and left
just a stub function get_purr().
      - this should apply clean to latest linus tree.  (test-applied against
2.6.7-rc3).

    Pass # 3 updates...
      - Correcting my previously incorrect description of the
lparcfg_count_active_processors() function..
This is for the cases where we have some number of virtual
processors that are different than the total number of threads
in the system.  (i.e. systemcfg->processorcount isnt the desired
value for partition_active_processors)
      - moved e2a function into its own file in arch/ppc64/lib.
      - changed lparcfg_count_active_processors() to use a while loop
instead of a for loop.
      - removed redundant of_node_put in lparcfg_count_active_processors().
      - removed unneeded parms from get-system-parameter rtas_call.

Signed-off-by: Will Schmidt <willschm@us.ibm.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/ppc64/Kconfig
arch/ppc64/kernel/LparData.c
arch/ppc64/kernel/lparcfg.c
arch/ppc64/kernel/viopath.c
arch/ppc64/lib/Makefile
arch/ppc64/lib/e2a.c [new file with mode: 0644]
include/asm-ppc64/system.h