1. 02 10月, 2009 8 次提交
    • T
      ia64: initialize cpu maps early · 12cda817
      Tejun Heo 提交于
      All information necessary to initialize cpu possible and present maps
      are available once early_acpi_boot_init() is complete.  Reorganize
      setup_arch() and acpi init functions such that,
      
      * CPU information is printed after LAPIC entries are parsed in
        early_acpi_boot_init().
      
      * smp_build_cpu_map() is called by setup_arch() instead of acpi
        functions.
      
      * smp_build_cpu_map() is called once all CPU related information is
        available before memory is initialized.
      
      This is primarily to allow find_memory() to use cpu maps but is also a
      general cleanup.  Please note that with this change, the somewhat
      ad-hoc early_cpu_possible_map defined and used for NUMA configurations
      is probably unnecessary.  Something to clean up another day.
      Signed-off-by: NTejun Heo <tj@kernel.org>
      Acked-by: NTony Luck <tony.luck@intel.com>
      Cc: Fenghua Yu <fenghua.yu@intel.com>
      Cc: linux-ia64 <linux-ia64@vger.kernel.org>
      12cda817
    • T
      ia64: don't alias VMALLOC_END to vmalloc_end · 126b3fcd
      Tejun Heo 提交于
      If CONFIG_VIRTUAL_MEM_MAP is enabled, ia64 defines macro VMALLOC_END
      as unsigned long variable vmalloc_end which is adjusted to prepare
      room for vmemmap.  This becomes probnlematic if a local variables
      vmalloc_end is defined in some function (not very unlikely) and
      VMALLOC_END is used in the function - the function thinks its
      referencing the global VMALLOC_END value but would be referencing its
      own local vmalloc_end variable.
      
      There's no reason VMALLOC_END should be a macro.  Just define it as an
      unsigned long variable if CONFIG_VIRTUAL_MEM_MAP is set to avoid nasty
      surprises.
      Signed-off-by: NTejun Heo <tj@kernel.org>
      Acked-by: NTony Luck <tony.luck@intel.com>
      Cc: Fenghua Yu <fenghua.yu@intel.com>
      Cc: linux-ia64 <linux-ia64@vger.kernel.org>
      Cc: Christoph Lameter <cl@linux-foundation.org>
      126b3fcd
    • B
      s3cmci: add better support for no card detect or write protect available · 00acfaee
      Ben Dooks 提交于
      Add better support for omitting either the card detect or the write
      protect GPIOs if the board does not support it.  Add the fields
      no_wprotect and no_detect to the platform data which when set indicate the
      absence of the respective GPIOs.
      
      Note, this also fixes a minor bug where it tries to free IRQ0 if there is
      no detect gpio available.
      Signed-off-by: NBen Dooks <ben@simtec.co.uk>
      Cc: <linux-mmc@vger.kernel.org>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      00acfaee
    • B
      s3cmci: Kconfig selection for PIO/DMA/Both · 26f14947
      Ben Dooks 提交于
      Add a selection for the data transfer mode of the s3cmci driver, allowing
      for either a configuration or rumtime selection of the use of the DMA or
      PIO transfer code.
      
      The PIO only mode is 476 bytes smaller than the driver with both methods
      compiled in.
      Signed-off-by: NBen Dooks <ben@simtec.co.uk>
      Cc: <linux-mmc@vger.kernel.org>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      26f14947
    • S
      x86: fix csum_ipv6_magic asm memory clobber · 392d814d
      Samuel Thibault 提交于
      Just like ip_fast_csum, the assembly snippet in csum_ipv6_magic needs a
      memory clobber, as it is only passed the address of the buffer, not a
      memory reference to the buffer itself.
      
      This caused failures in Hurd's pfinetv4 when we tried to compile it with
      gcc-4.3 (bogus checksums).
      Signed-off-by: NSamuel Thibault <samuel.thibault@ens-lyon.org>
      Cc: Ingo Molnar <mingo@elte.hu>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Cc: "H. Peter Anvin" <hpa@zytor.com>
      Acked-by: N"David S. Miller" <davem@davemloft.net>
      Cc: Andi Kleen <andi@firstfloor.org>
      Cc: <stable@kernel.org>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      392d814d
    • M
      mn10300: fix kernel build failures when using gcc-4.x · d22a001b
      Mark Salter 提交于
      Fix some build failures when using gcc-4.x for MN10300.
      
      Firstly, __get_user() fails to build because the pointer points to a const and
      __gu_val ends up being read-only:
      
      In file included from include/linux/mempolicy.h:62,
                       from init/main.c:50:
      include/linux/pagemap.h: In function 'fault_in_pages_readable':
      include/linux/pagemap.h:394: error: read-only variable '__gu_val' used as 'asm' output
      include/linux/pagemap.h:394: error: read-only variable '__gu_val' used as 'asm' output
      include/linux/pagemap.h:394: error: read-only variable '__gu_val' used as 'asm' output
      include/linux/pagemap.h:400: error: read-only variable '__gu_val' used as 'asm' output
      include/linux/pagemap.h:400: error: read-only variable '__gu_val' used as 'asm' output
      include/linux/pagemap.h:400: error: read-only variable '__gu_val' used as 'asm' output
      make[1]: *** [init/main.o] Error 1
      
      Secondly, gcc-4 doesn't allow casts of lvalues:
      
        UPD     include/linux/compile.h
      arch/mn10300/kernel/rtc.c: In function 'calibrate_clock':
      arch/mn10300/kernel/rtc.c:170: error: lvalue required as left operand of assignment
      arch/mn10300/kernel/rtc.c:172: error: lvalue required as left operand of assignment
      make[1]: *** [arch/mn10300/kernel/rtc.o] Error 1
      
      These are seen with gcc 4.2.1.
      Signed-off-by: NMark Salter <msalter@redhat.com>
      Signed-off-by: NDavid Howells <dhowells@redhat.com>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      d22a001b
    • A
      revert "m68k: convert to asm-generic/hardirq.h" · a28b3dc9
      Andrew Morton 提交于
      Revert 45d80eea ("m68k: convert to
      asm-generic/hardirq.h") - it fails to compile due to an inclusion tangle:
      
      In file included from include/linux/irq.h:12,
                       from include/asm-generic/hardirq.h:6,
                       from /usr/src/devel/arch/m68k/include/asm/hardirq_mm.h:6,
                       from /usr/src/devel/arch/m68k/include/asm/hardirq.h:4,
                       from include/linux/hardirq.h:10,
                       from /usr/src/devel/arch/m68k/include/asm/system_mm.h:69,
                       from /usr/src/devel/arch/m68k/include/asm/system.h:4,
                       from include/linux/list.h:7,
                       from include/linux/preempt.h:11,
                       from include/linux/spinlock.h:50,
                       from include/linux/seqlock.h:29,
                       from include/linux/time.h:8,
                       from include/linux/timex.h:56,
                       from include/linux/sched.h:56,
                       from arch/m68k/kernel/asm-offsets.c:14:
      include/linux/smp.h:17: error: field 'list' has incomplete type
      
      Cc: Christoph Hellwig <hch@lst.de>
      Cc: Geert Uytterhoeven <geert@linux-m68k.org>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      a28b3dc9
    • A
      const: constify remaining file_operations · 828c0950
      Alexey Dobriyan 提交于
      [akpm@linux-foundation.org: fix KVM]
      Signed-off-by: NAlexey Dobriyan <adobriyan@gmail.com>
      Acked-by: NMike Frysinger <vapier@gentoo.org>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      828c0950
  2. 01 10月, 2009 19 次提交
  3. 30 9月, 2009 1 次提交
  4. 29 9月, 2009 2 次提交
  5. 28 9月, 2009 2 次提交
  6. 27 9月, 2009 4 次提交
  7. 26 9月, 2009 2 次提交
  8. 25 9月, 2009 2 次提交