1. 27 7月, 2010 1 次提交
  2. 16 7月, 2010 1 次提交
    • R
      ARM: OMAP: Cleanup OMAP FB SDRAM reservation · a1af0fbb
      Russell King 提交于
      The logic in this file is rather convoluted, but essentially:
      
      1. region type 0 is SDRAM
      2. referring to the code fragment
                      if (set_fbmem_region_type(&rg, OMAPFB_MEMTYPE_SDRAM,
                                                sdram_start, sdram_size) < 0 ||
                          (rg.type != OMAPFB_MEMTYPE_SDRAM))
                              continue;
         - if rg.type is not OMAPFB_MEMTYPE_SDRAM, set_fbmem_region_type()
           returns zero immediately (since rg.type is non-zero), and so we
           'continue'.
         - if rg.type is OMAPFB_MEMTYPE_SDRAM, and rg.paddr is zero,
           we fall through.
         - if rg.type is OMAPFB_MEMTYPE_SDRAM, and the region lies within
           SDRAM, we fall through.
         - if rg.type is OMAPFB_MEMTYPE_SDRAM, and the region is not within
           SDRAM, we 'continue'.
      3. check_fbmem_region seems unnecessary.
         - we know rg.type is OMAPFB_MEMTYPE_SDRAM
         - we can check rg.size independently
         - bootmem_reserve() can check for overlapping reservations itself
         - we've already validated that the requested region lies within SDRAM.
      4. avoid BUG()ing if the region entry is already set; print an error,
         and mark the configuration invalid - at least we'll continue booting
         so the error message has a chance of being logged/visible via serial
         console.
      
      With these changes in place, it makes the code much easier to understand
      and hence easier to convert to LMB.
      Signed-off-by: NRussell King <rmk+kernel@arm.linux.org.uk>
      a1af0fbb
  3. 09 12月, 2009 2 次提交
  4. 21 10月, 2009 1 次提交
    • T
      omap: headers: Move remaining headers from include/mach to include/plat · ce491cf8
      Tony Lindgren 提交于
      Move the remaining headers under plat-omap/include/mach
      to plat-omap/include/plat. Also search and replace the
      files using these headers to include using the right path.
      
      This was done with:
      
      #!/bin/bash
      mach_dir_old="arch/arm/plat-omap/include/mach"
      plat_dir_new="arch/arm/plat-omap/include/plat"
      headers=$(cd $mach_dir_old && ls *.h)
      omap_dirs="arch/arm/*omap*/ \
      drivers/video/omap \
      sound/soc/omap"
      other_files="drivers/leds/leds-ams-delta.c \
      drivers/mfd/menelaus.c \
      drivers/mfd/twl4030-core.c \
      drivers/mtd/nand/ams-delta.c"
      
      for header in $headers; do
      	old="#include <mach\/$header"
      	new="#include <plat\/$header"
      	for dir in $omap_dirs; do
      		find $dir -type f -name \*.[chS] | \
      			xargs sed -i "s/$old/$new/"
      	done
      	find drivers/ -type f -name \*omap*.[chS] | \
      		xargs sed -i "s/$old/$new/"
      	for file in $other_files; do
      		sed -i "s/$old/$new/" $file
      	done
      done
      
      for header in $(ls $mach_dir_old/*.h); do
      	git mv $header $plat_dir_new/
      done
      Signed-off-by: NTony Lindgren <tony@atomide.com>
      ce491cf8
  5. 12 5月, 2009 1 次提交
  6. 06 9月, 2008 1 次提交
  7. 07 8月, 2008 3 次提交
  8. 25 7月, 2008 2 次提交
  9. 08 2月, 2008 1 次提交
    • B
      Introduce flags for reserve_bootmem() · 72a7fe39
      Bernhard Walle 提交于
      This patchset adds a flags variable to reserve_bootmem() and uses the
      BOOTMEM_EXCLUSIVE flag in crashkernel reservation code to detect collisions
      between crashkernel area and already used memory.
      
      This patch:
      
      Change the reserve_bootmem() function to accept a new flag BOOTMEM_EXCLUSIVE.
      If that flag is set, the function returns with -EBUSY if the memory already
      has been reserved in the past.  This is to avoid conflicts.
      
      Because that code runs before SMP initialisation, there's no race condition
      inside reserve_bootmem_core().
      
      [akpm@linux-foundation.org: coding-style fixes]
      [akpm@linux-foundation.org: fix powerpc build]
      Signed-off-by: NBernhard Walle <bwalle@suse.de>
      Cc: <linux-arch@vger.kernel.org>
      Cc: "Eric W. Biederman" <ebiederm@xmission.com>
      Cc: Vivek Goyal <vgoyal@in.ibm.com>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      72a7fe39
  10. 06 11月, 2007 1 次提交
  11. 09 5月, 2007 4 次提交
  12. 01 7月, 2006 1 次提交
  13. 03 4月, 2006 1 次提交