]> git.baikalelectronics.ru Git - kernel.git/commit
memory-hotplug: update documentation to hide information about SECTIONS and remove...
authorLi Zhong <zhong@linux.vnet.ibm.com>
Wed, 4 Jun 2014 23:07:03 +0000 (16:07 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 4 Jun 2014 23:53:58 +0000 (16:53 -0700)
commit57857bf874fd74f5aa7238ffe3c8153d02d9b4d1
treea4239563e740cce14dc52d5468a7fd880582a92d
parentd542dcd7bbec6edff7b7aa58d53a6803115b5070
memory-hotplug: update documentation to hide information about SECTIONS and remove end_phys_index

Seems we all agree that information about SECTION, e.g. section size,
sections per memory block should be kept as kernel internals, and not
exposed to userspace.

This patch updates Documentation/memory-hotplug.txt to refer to memory
blocks instead of memory sections where appropriate and added a
paragraph to explain that memory blocks are made of memory sections.
The documentation update is mostly provided by Nathan.

Also, as end_phys_index in code is actually not the end section id, but
the end memory block id, which should always be the same as phys_index.
So it is removed here.

Signed-off-by: Li Zhong <zhong@linux.vnet.ibm.com>
Reviewed-by: Zhang Yanfei <zhangyanfei@cn.fujitsu.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Documentation/memory-hotplug.txt
drivers/base/memory.c