linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] x86: add cpus_scnprintf function v3
@ 2008-04-08 18:43 Mike Travis
  2008-04-08 18:43 ` [PATCH 1/3] x86: modify show_shared_cpu_map in intel_cacheinfo v3 Mike Travis
                   ` (5 more replies)
  0 siblings, 6 replies; 41+ messages in thread
From: Mike Travis @ 2008-04-08 18:43 UTC (permalink / raw)
  To: Ingo Molnar
  Cc: Bert Wesarg, Paul Jackson, Thomas Gleixner, H. Peter Anvin,
	Andrew Morton, linux-kernel


  * 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.

-- 

^ permalink raw reply	[flat|nested] 41+ messages in thread

end of thread, other threads:[~2008-04-10 17:36 UTC | newest]

Thread overview: 41+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-08 18:43 [PATCH 0/3] x86: add cpus_scnprintf function v3 Mike Travis
2008-04-08 18:43 ` [PATCH 1/3] x86: modify show_shared_cpu_map in intel_cacheinfo v3 Mike Travis
2008-04-08 19:36   ` Bert Wesarg
2008-04-08 20:44     ` Mike Travis
2008-04-10 14:03       ` Paul Jackson
2008-04-10 17:24       ` Bert Wesarg
2008-04-10 17:36         ` Paul Jackson
2008-04-10 13:57   ` Paul Jackson
2008-04-08 18:43 ` [PATCH 2/3] cpumask: use new cpus_scnprintf function v3 Mike Travis
2008-04-08 19:40   ` Bert Wesarg
2008-04-08 20:46     ` Mike Travis
2008-04-09 15:53       ` Bert Wesarg
2008-04-10 12:49         ` Paul Jackson
2008-04-10  0:32   ` Paul Jackson
2008-04-10 12:13   ` Paul Jackson
2008-04-10 14:05   ` Paul Jackson
2008-04-08 18:43 ` [PATCH 3/3] cpumask: add show cpu map functions v2 Mike Travis
2008-04-08 19:32   ` Bert Wesarg
2008-04-08 20:52     ` Mike Travis
2008-04-09 17:39       ` Bert Wesarg
2008-04-10  0:29         ` Paul Jackson
2008-04-10  6:05           ` Bert Wesarg
2008-04-10 14:13   ` Paul Jackson
2008-04-08 19:33 ` [PATCH 0/3] x86: add cpus_scnprintf function v3 Bert Wesarg
2008-04-08 20:54   ` Mike Travis
2008-04-10 15:03     ` Paul Jackson
2008-04-09 15:11 ` Ingo Molnar
2008-04-09 17:51 ` Bert Wesarg
2008-04-09 20:39   ` Greg KH
2008-04-09 20:52     ` Bert Wesarg
2008-04-09 21:14       ` Greg KH
2008-04-09 21:21         ` Bert Wesarg
2008-04-09 20:59     ` Mike Travis
2008-04-09 21:02       ` Bert Wesarg
2008-04-09 21:15       ` Greg KH
2008-04-10  0:18       ` Paul Jackson
2008-04-10 12:10   ` Paul Jackson
2008-04-10 16:14     ` Bert Wesarg
2008-04-10 16:27       ` Paul Jackson
2008-04-10 17:30       ` Greg KH
2008-04-10 17:36         ` Bert Wesarg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).