android_kernel_xiaomi_sm8350/drivers/base
Lee Schermerhorn bde631a518 mm: add node states sysfs class attributeS
Add a per node state sysfs class attribute file to /sys/devices/system/node
to display node state masks.

E.g., on a 4-cell HP ia64 NUMA platform, we have 5 nodes: 4 representing
the actual hardware cells and one memory-only pseudo-node representing a
small amount [512MB] of "hardware interleaved" memory.  With this patch, in
/sys/devices/system/node we see:

#ls -1F /sys/devices/system/node
has_cpu
has_normal_memory
node0/
node1/
node2/
node3/
node4/
online
possible
#cat /sys/devices/system/node/possible
0-255
#cat /sys/devices/system/node/online
0-4
#cat /sys/devices/system/node/has_normal_memory
0-4
#cat /sys/devices/system/node/has_cpu
0-3

Signed-off-by: Lee Schermerhorn <lee.schermerhorn@hp.com>
Acked-by: Christoph Lameter <clameter@sgi.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-10-16 09:43:03 -07:00
..
power PM: merge device power-management source files 2007-10-12 14:51:12 -07:00
attribute_container.c Driver core: include linux/mutex.h from attribute_container.c 2007-07-11 16:09:01 -07:00
base.h Driver core: remove get_bus() 2007-10-12 14:51:02 -07:00
bus.c Driver core: rename ktype_driver 2007-10-12 14:51:12 -07:00
class.c Driver core: rename ktype_class 2007-10-12 14:51:11 -07:00
core.c Driver core: rename ktype_device 2007-10-12 14:51:12 -07:00
cpu.c CPU online file permission 2007-07-31 15:39:39 -07:00
dd.c driver core: fix kernel doc of device_release_driver 2007-07-11 16:09:02 -07:00
devres.c Driver core: fix devres_release_all() return value 2007-07-11 16:09:02 -07:00
dma-mapping.c devres: device resource management 2007-02-09 17:39:36 -05:00
dmapool.c dma: make dma pool to use kmalloc_node 2007-07-16 09:05:51 -07:00
driver.c Driver core: remove unneeded completion from driver release path 2007-04-27 10:57:29 -07:00
firmware_class.c Fix Firmware class name collision 2007-10-12 14:51:06 -07:00
firmware.c remove "struct subsystem" as it is no longer needed 2007-05-02 18:57:59 -07:00
hypervisor.c [S390] hypfs comment cleanup. 2006-09-20 15:58:44 +02:00
init.c
isa.c
Kconfig Driver core: add CONFIG_UEVENT_HELPER_PATH 2007-10-12 14:51:01 -07:00
Makefile Introduce CONFIG_HAS_DMA 2007-05-07 12:12:51 -07:00
map.c
memory.c sparsemem: record when a section has a valid mem_map 2007-10-16 09:42:51 -07:00
node.c mm: add node states sysfs class attributeS 2007-10-16 09:43:03 -07:00
platform.c Driver core: Make platform_device.id an int 2007-10-12 14:51:07 -07:00
sys.c sysdev: remove global sysdev drivers list 2007-10-12 14:51:07 -07:00
topology.c Add suspend-related notifications for CPU hotplug 2007-05-09 12:30:56 -07:00
transport_class.c