linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] x86: mm: accurate the comments for STEP_SIZE_SHIFT macro
@ 2013-03-18 10:21 Lin Feng
  2013-03-18 18:53 ` Yinghai Lu
  0 siblings, 1 reply; 7+ messages in thread
From: Lin Feng @ 2013-03-18 10:21 UTC (permalink / raw)
  To: akpm
  Cc: linux-mm, x86, linux-kernel, tglx, mingo, hpa, yinghai, penberg,
	jacob.shin, Lin Feng

For x86 PUD_SHIFT is 30 and PMD_SHIFT is 21, so the consequence of
(PUD_SHIFT-PMD_SHIFT)/2 is 4. Update the comments to the code.

Cc: Yinghai Lu <yinghai@kernel.org>
Signed-off-by: Lin Feng <linfeng@cn.fujitsu.com>
---
 arch/x86/mm/init.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/x86/mm/init.c b/arch/x86/mm/init.c
index 59b7fc4..637a95b 100644
--- a/arch/x86/mm/init.c
+++ b/arch/x86/mm/init.c
@@ -389,7 +389,7 @@ static unsigned long __init init_range_memory_mapping(
 	return mapped_ram_size;
 }
 
-/* (PUD_SHIFT-PMD_SHIFT)/2 */
+/* (PUD_SHIFT-PMD_SHIFT)/2+1 */
 #define STEP_SIZE_SHIFT 5
 void __init init_mem_mapping(void)
 {
-- 
1.8.0.1

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

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

end of thread, other threads:[~2013-03-18 22:50 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-03-18 10:21 [PATCH] x86: mm: accurate the comments for STEP_SIZE_SHIFT macro Lin Feng
2013-03-18 18:53 ` Yinghai Lu
2013-03-18 18:59   ` H. Peter Anvin
2013-03-18 19:13     ` Yinghai Lu
2013-03-18 19:14       ` H. Peter Anvin
2013-03-18 21:19         ` Yinghai Lu
2013-03-18 22:50           ` H. Peter Anvin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox