• Paul Mackerras's avatar
    [PATCH] ppc64: update lparcfg to use seq_file · 43610b32
    Paul Mackerras authored
    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: default avatarWill Schmidt <willschm@us.ibm.com>
    Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
    Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
    43610b32
e2a.c 1.9 KB