x86/mm: Streamline and restore probe_memory_block_size()
authorSeth Jennings <sjennings@variantweb.net>
Mon, 30 Nov 2015 16:47:43 +0000 (10:47 -0600)
committerIngo Molnar <mingo@kernel.org>
Tue, 19 Jan 2016 11:11:25 +0000 (12:11 +0100)
commit43c75f933be26422f166d6d869a19997312f4732
treefde6bf49ab3ee8d3897b47cac040e16a1dadcecb
parent10a0c0f0595b20efa127a1816670c64a3d0e4965
x86/mm: Streamline and restore probe_memory_block_size()

The cumulative effect of the following two commits:

  bdee237c0343 ("x86: mm: Use 2GB memory block size on large-memory x86-64 systems")
  982792c782ef ("x86, mm: probe memory block size for generic x86 64bit")

... is some pretty convoluted code.

The first commit also removed code for the UV case without stated reason,
which might lead to unexpected change in behavior.

This commit has no other (intended) functional change; just seeks to simplify
and make the code more understandable, beyond restoring the UV behavior.

The whole section with the "tail size" doesn't seem to be
reachable, since both the >= 64GB and < 64GB case return, so it
was removed.

Signed-off-by: Seth Jennings <sjennings@variantweb.net>
Cc: Daniel J Blueman <daniel@numascale.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Yinghai Lu <yinghai@kernel.org>
Link: http://lkml.kernel.org/r/1448902063-18885-1-git-send-email-sjennings@variantweb.net
[ Rewrote the title and changelog. ]
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/mm/init_64.c