Messages in this thread | | | Date | Tue, 08 Apr 2008 11:43:01 -0700 | From | Mike Travis <> | Subject | [PATCH 0/3] x86: add cpus_scnprintf function v3 |
| |
* Add cpu_sysdev_class functions to display the
cpu_online_map cpu_present_map cpu_possible_map cpu_system_map
* Cleanup usages of cpumask_scprintf in the following files and add another interface to use cpulist_scnprintf where appropriate.
arch/x86/kernel/cpu/intel_cacheinfo.c drivers/base/cpu.c drivers/base/node.c drivers/base/topology.c drivers/pci/pci-sysfs.c drivers/pci/probe.c include/linux/sysdev.h kernel/cpuset.c kernel/sched_stats.h kernel/trace/trace.c
- The new interface is generally the same base name but uses 'list' instead of 'map'. For example, there is now:
# cat /sys/devices/system/node/node0/cpumap 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,\ 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,\ 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,\ 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,\ 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,\ 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,\ 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,\ 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,\ 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,\ 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,\ 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,\ 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,\ 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,\ 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,\ 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,\ 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000003
- And the new interface:
# cat /sys/devices/system/node/node0/cpulist 0-1
Based on: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git + x86/latest .../x86/linux-2.6-x86.git + sched-devel/latest .../mingo/linux-2.6-sched-devel.git
Signed-off-by: Mike Travis <travis@sgi.com> --- v3: Removed cpus_scnprintf() and all references.
v2: Renamed cpuset_scnprintf() to cpus_scnprintf to avoid confusion with "cpusets", and changed the other names to match.
Added a sentinel character for the cpulist type output so scripts can be written to handle both cases.
Added warning in the Documentation/sysctl/kernel.txt that changing this option may break scripts and programs that rely on the current format. Also provided example on how to process the output.
Added information to Documentation/scheduler/sched-stats.txt about change in version number because of new cpus_scnprintf function.
--
| |