1. 15 7月, 2011 7 次提交
  2. 14 7月, 2011 2 次提交
  3. 25 5月, 2011 1 次提交
    • Y
      memblock: add error return when CONFIG_HAVE_MEMBLOCK is not set · 95dde501
      Yinghai Lu 提交于
      On larger systems, information in the kernel log is lost because there is
      so much early text printed, that it overflows the static log buffer before
      the log_buf_len kernel parameter can be processed, and a bigger log buffer
      allocated.
      
      Distros are relunctant to increase memory usage by increasing the size of
      the static log buffer, so minimize the problem by allocating the new log
      buffer as early as possible.
      
      This patch:
      
      Add an error return if CONFIG_HAVE_MEMBLOCK is not set instead of having
      to add #ifdef CONFIG_HAVE_MEMBLOCK around blocks of code calling that
      function.
      Signed-off-by: NMike Travis <travis@sgi.com>
      Cc: Yinghai Lu <yhlu.kernel@gmail.com>
      Cc: "H. Peter Anvin" <hpa@zytor.com>
      Cc: Jack Steiner <steiner@sgi.com>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Cc: Ingo Molnar <mingo@elte.hu>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      95dde501
  4. 13 10月, 2010 1 次提交
    • Y
      memblock, bootmem: Round pfn properly for memory and reserved regions · c7fc2de0
      Yinghai Lu 提交于
      We need to round memory regions correctly -- specifically, we need to
      round reserved region in the more expansive direction (lower limit
      down, upper limit up) whereas usable memory regions need to be rounded
      in the more restrictive direction (lower limit up, upper limit down).
      
      This introduces two set of inlines:
      
      	memblock_region_memory_base_pfn()
      	memblock_region_memory_end_pfn()
      	memblock_region_reserved_base_pfn()
      	memblock_region_reserved_end_pfn()
      
      Although they are antisymmetric (and therefore are technically
      duplicates) the use of the different inlines explicitly documents the
      programmer's intention.
      
      The lack of proper rounding caused a bug on ARM, which was then found
      to also affect other architectures.
      Reported-by: NRussell King <rmk@arm.linux.org.uk>
      Signed-off-by: NYinghai Lu <yinghai@kernel.org>
      LKML-Reference: <4CB4CDFD.4020105@kernel.org>
      Cc: Jeremy Fitzhardinge <jeremy@goop.org>
      Signed-off-by: NH. Peter Anvin <hpa@linux.intel.com>
      c7fc2de0
  5. 16 9月, 2010 1 次提交
  6. 28 8月, 2010 1 次提交
  7. 05 8月, 2010 19 次提交
  8. 04 8月, 2010 4 次提交
  9. 14 7月, 2010 1 次提交