1. 05 Feb, 2008 22 commits
  2. 04 Feb, 2008 18 commits
    • Linus Torvalds's avatar
      Merge branch 'for-linus' of master.kernel.org:/home/rmk/linux-2.6-arm · 9ef9dc69
      Linus Torvalds authored
      * 'for-linus' of master.kernel.org:/home/rmk/linux-2.6-arm: (44 commits)
        [ARM] 4822/1: RealView: Change the REALVIEW_MPCORE configuration option
        [ARM] 4821/1: RealView: Remove the platform dependencies from localtimer.c
        [ARM] 4820/1: RealView: Select the timer IRQ at run-time
        [ARM] 4819/1: RealView: Fix entry-macro.S to work with multiple platforms
        [ARM] 4818/1: RealView: Add core-tile detection
        [ARM] 4817/1: RealView: Move the AMBA resource definitions to realview_eb.c
        [ARM] 4816/1: RealView: Move the platform-specific definitions into board-eb.h
        [ARM] 4815/1: RealView: Add clockevents suport for the local timers
        [ARM] 4814/1: RealView: Add broadcasting clockevents support for ARM11MPCore
        [ARM] 4813/1: Add SMP helper functions for clockevents support
        [ARM] 4812/1: RealView: clockevents support for the RealView platforms
        [ARM] 4811/1: RealView: clocksource support for the RealView platforms
        [ARM] 4736/1: Export atags to userspace and allow kexec to use customised atags
        [ARM] 4798/1: pcm027: fix missing header file
        [ARM] 4803/1: pxa: fix building issue of poodle.c caused by patch 4737/1
        [ARM] 4801/1: pxa: fix building issues of missing pxa2xx-regs.h
        [ARM] pxa: introduce sysdev for pxa3xx static memory controller
        [ARM] pxa: add preliminary suspend/resume code for pxa3xx
        [ARM] pxa: introduce sysdev for GPIO register saving/restoring
        [ARM] pxa: introduce sysdev for IRQ register saving/restoring
        ...
      9ef9dc69
    • Linus Torvalds's avatar
      Merge branch 'slub-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/christoph/vm · 2c8296f8
      Linus Torvalds authored
      * 'slub-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/christoph/vm:
        Explain kmem_cache_cpu fields
        SLUB: Do not upset lockdep
        SLUB: Fix coding style violations
        Add parameter to add_partial to avoid having two functions
        SLUB: rename defrag to remote_node_defrag_ratio
        Move count_partial before kmem_cache_shrink
        SLUB: Fix sysfs refcounting
        slub: fix shadowed variable sparse warnings
      2c8296f8
    • Christoph Lameter's avatar
      Explain kmem_cache_cpu fields · da89b79e
      Christoph Lameter authored
      Add some comments explaining the fields of the kmem_cache_cpu structure.
      Signed-off-by: default avatarChristoph Lameter <clameter@sgi.com>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      da89b79e
    • root's avatar
      SLUB: Do not upset lockdep · ba84c73c
      root authored
      inconsistent {softirq-on-W} -> {in-softirq-W} usage.
      swapper/0 [HC0[0]:SC1[1]:HE0:SE0] takes:
       (&n->list_lock){-+..}, at: [<ffffffff802935c1>] add_partial+0x31/0xa0
      {softirq-on-W} state was registered at:
        [<ffffffff80259fb8>] __lock_acquire+0x3e8/0x1140
        [<ffffffff80259838>] debug_check_no_locks_freed+0x188/0x1a0
        [<ffffffff8025ad65>] lock_acquire+0x55/0x70
        [<ffffffff802935c1>] add_partial+0x31/0xa0
        [<ffffffff805c76de>] _spin_lock+0x1e/0x30
        [<ffffffff802935c1>] add_partial+0x31/0xa0
        [<ffffffff80296f9c>] kmem_cache_open+0x1cc/0x330
        [<ffffffff805c7984>] _spin_unlock_irq+0x24/0x30
        [<ffffffff802974f4>] create_kmalloc_cache+0x64/0xf0
        [<ffffffff80295640>] init_alloc_cpu_cpu+0x70/0x90
        [<ffffffff8080ada5>] kmem_cache_init+0x65/0x1d0
        [<ffffffff807f1b4e>] start_kernel+0x23e/0x350
        [<ffffffff807f112d>] _sinittext+0x12d/0x140
        [<ffffffffffffffff>] 0xffffffffffffffff
      
      This change isn't really necessary for correctness, but it prevents lockdep
      from getting upset and then disabling itself.
      Signed-off-by: default avatarPeter Zijlstra <a.p.zijlstra@chello.nl>
      Cc: Christoph Lameter <clameter@sgi.com>
      Cc: Kamalesh Babulal <kamalesh@linux.vnet.ibm.com>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarChristoph Lameter <clameter@sgi.com>
      ba84c73c
    • Pekka Enberg's avatar
      SLUB: Fix coding style violations · 06428780
      Pekka Enberg authored
      This fixes most of the obvious coding style violations in mm/slub.c as
      reported by checkpatch.
      Acked-by: default avatarChristoph Lameter <clameter@sgi.com>
      Signed-off-by: default avatarPekka Enberg <penberg@cs.helsinki.fi>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarChristoph Lameter <clameter@sgi.com>
      06428780
    • Christoph Lameter's avatar
      Add parameter to add_partial to avoid having two functions · 7c2e132c
      Christoph Lameter authored
      Add a parameter to add_partial instead of having separate functions.  The
      parameter allows a more detailed control of where the slab pages is placed in
      the partial queues.
      
      If we put slabs back to the front then they are likely immediately used for
      allocations.  If they are put at the end then we can maximize the time that
      the partial slabs spent without being subject to allocations.
      
      When deactivating slab we can put the slabs that had remote objects freed (we
      can see that because objects were put on the freelist that requires locks) to
      them at the end of the list so that the cachelines of remote processors can
      cool down.  Slabs that had objects from the local cpu freed to them (objects
      exist in the lockless freelist) are put in the front of the list to be reused
      ASAP in order to exploit the cache hot state of the local cpu.
      
      Patch seems to slightly improve tbench speed (1-2%).
      Signed-off-by: default avatarChristoph Lameter <clameter@sgi.com>
      Reviewed-by: default avatarPekka Enberg <penberg@cs.helsinki.fi>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      7c2e132c
    • Christoph Lameter's avatar
      SLUB: rename defrag to remote_node_defrag_ratio · 9824601e
      Christoph Lameter authored
      The NUMA defrag works by allocating objects from partial slabs on remote
      nodes.  Rename it to
      
      	remote_node_defrag_ratio
      
      to be clear about this.
      Signed-off-by: default avatarChristoph Lameter <clameter@sgi.com>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      9824601e
    • Christoph Lameter's avatar
      Move count_partial before kmem_cache_shrink · f61396ae
      Christoph Lameter authored
      Move the counting function for objects in partial slabs so that it is placed
      before kmem_cache_shrink.
      Signed-off-by: default avatarChristoph Lameter <clameter@sgi.com>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      f61396ae
    • Christoph Lameter's avatar
      SLUB: Fix sysfs refcounting · 151c602f
      Christoph Lameter authored
      If CONFIG_SYSFS is set then free the kmem_cache structure when
      sysfs tells us its okay.
      
      Otherwise there is the danger (as pointed out by
      Al Viro) that sysfs thinks the kobject still exists after
      kmem_cache_destroy() removed it.
      Signed-off-by: default avatarChristoph Lameter <clameter@sgi.com>
      Reviewed-by: default avatarPekka J Enberg <penberg@cs.helsinki.fi>
      151c602f
    • Harvey Harrison's avatar
      slub: fix shadowed variable sparse warnings · e374d483
      Harvey Harrison authored
      Introduce 'len' at outer level:
      mm/slub.c:3406:26: warning: symbol 'n' shadows an earlier one
      mm/slub.c:3393:6: originally declared here
      
      No need to declare new node:
      mm/slub.c:3501:7: warning: symbol 'node' shadows an earlier one
      mm/slub.c:3491:6: originally declared here
      
      No need to declare new x:
      mm/slub.c:3513:9: warning: symbol 'x' shadows an earlier one
      mm/slub.c:3492:6: originally declared here
      Signed-off-by: default avatarHarvey Harrison <harvey.harrison@gmail.com>
      Signed-off-by: default avatarChristoph Lameter <clameter@sgi.com>
      e374d483
    • Russell King's avatar
      Merge branches 'at91', 'ixp', 'master', 'misc', 'pxa' and 'realview' into devel · 0d899e1b
      Russell King authored
      * at91:
        [ARM] 4802/1: Fix typo and remove vague comment
        [ARM] 4660/3: at91: allow selecting UART for early kernel messages
        [ARM] 4739/1: at91sam9263: make gpio bank C and D irqs work
      
      * ixp:
        [ARM] 4809/2: ixp4xx: Merge dsmg600-power.c into dsmg600-setup.c
        [ARM] 4808/2: ixp4xx: Merge nas100d-power.c into nas100d-setup.c
        [ARM] 4807/2: ixp4xx: Merge nslu2-power.c into nslu2-setup.c
        [ARM] 4806/1: ixp4xx: Ethernet support for the nslu2 and nas100d boards
        [ARM] 4805/1: ixp4xx: Use leds-gpio driver instead of IXP4XX-GPIO-LED driver
        [ARM] 4715/2: Ethernet support for IXDP425 boards
        [ARM] 4714/2: Headers for IXP4xx built-in Ethernet and WAN drivers
        [ARM] 4713/3: Adds drivers for IXP4xx QMgr and NPE features
        [ARM] 4712/2: Adds functions to read and write IXP4xx "feature" bits
        [ARM] 4774/2: ixp4xx: Register dsmg600 rtc i2c_board_info
        [ARM] 4773/2: ixp4xx: Register nas100d rtc i2c_board_info
        [ARM] 4772/2: ixp4xx: Register nslu2 rtc i2c_board_info
        [ARM] 4769/2: ixp4xx: Button updates for the dsmg600 board
        [ARM] 4768/2: ixp4xx: Button and LED updates for the nas100d board
        [ARM] 4767/2: ixp4xx: Add bitops.h include to io.h
        [ARM] 4766/2: ixp4xx: Update ixp4xx_defconfig, enabling all supported boards
      
      * master:
        [ARM] 4810/1: - Fix 'section mismatch' building warnings
        [ARM] xtime_seqlock: fix more ARM machines for xtime deadlocking
        [ARM] 21285 serial: fix build error
      
      * misc:
        [ARM] 4736/1: Export atags to userspace and allow kexec to use customised atags
      
      * pxa:
        [ARM] 4798/1: pcm027: fix missing header file
        [ARM] 4803/1: pxa: fix building issue of poodle.c caused by patch 4737/1
        [ARM] 4801/1: pxa: fix building issues of missing pxa2xx-regs.h
        [ARM] pxa: introduce sysdev for pxa3xx static memory controller
        [ARM] pxa: add preliminary suspend/resume code for pxa3xx
        [ARM] pxa: introduce sysdev for GPIO register saving/restoring
        [ARM] pxa: introduce sysdev for IRQ register saving/restoring
        [ARM] pxa: fix the warning of undeclared "struct pxaohci_platform_data"
        [ARM] pxa: change set_kset_name() to direct name assignment for MFP sysclass
      
      * realview:
        [ARM] 4822/1: RealView: Change the REALVIEW_MPCORE configuration option
        [ARM] 4821/1: RealView: Remove the platform dependencies from localtimer.c
        [ARM] 4820/1: RealView: Select the timer IRQ at run-time
        [ARM] 4819/1: RealView: Fix entry-macro.S to work with multiple platforms
        [ARM] 4818/1: RealView: Add core-tile detection
        [ARM] 4817/1: RealView: Move the AMBA resource definitions to realview_eb.c
        [ARM] 4816/1: RealView: Move the platform-specific definitions into board-eb.h
        [ARM] 4815/1: RealView: Add clockevents suport for the local timers
        [ARM] 4814/1: RealView: Add broadcasting clockevents support for ARM11MPCore
        [ARM] 4813/1: Add SMP helper functions for clockevents support
        [ARM] 4812/1: RealView: clockevents support for the RealView platforms
        [ARM] 4811/1: RealView: clocksource support for the RealView platforms
      0d899e1b
    • Catalin Marinas's avatar
      [ARM] 4822/1: RealView: Change the REALVIEW_MPCORE configuration option · 41579f49
      Catalin Marinas authored
      This patch changes the REALVIEW_MPCORE configuration option to
      REALVIEW_EB_ARM11MP since this is only specific to RealView/EB.
      Signed-off-by: default avatarCatalin Marinas <catalin.marinas@arm.com>
      Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
      41579f49
    • Catalin Marinas's avatar
      [ARM] 4821/1: RealView: Remove the platform dependencies from localtimer.c · 39e823e3
      Catalin Marinas authored
      This patch removes the TWD_BASE macro used to set up and configure the
      local timers on ARM11MPCore. The twd_base_addr and twd_size variables
      are defined in localtimer.c and set from the realview_eb_init function.
      Signed-off-by: default avatarCatalin Marinas <catalin.marinas@arm.com>
      Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
      39e823e3
    • Catalin Marinas's avatar
      [ARM] 4820/1: RealView: Select the timer IRQ at run-time · 8cc4c548
      Catalin Marinas authored
      This patch sets the timer IRQ at run-time by moving the sys_timer
      structure and the timer_init function to the realview_eb.c file. This
      allows multiple RealView platforms to be compiled in the same kernel
      image.
      Signed-off-by: default avatarCatalin Marinas <catalin.marinas@arm.com>
      Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
      8cc4c548
    • Catalin Marinas's avatar
      [ARM] 4819/1: RealView: Fix entry-macro.S to work with multiple platforms · c4057f52
      Catalin Marinas authored
      This patch modifies the get_irqnr_preamble macro to work with multiple
      platforms at run-time by reading the address of the GIC controller from
      the gic_cpu_base_addr variable. This variable is defined in core.c and
      intialised in realview_eb.c (gic_init_irq).
      Signed-off-by: default avatarCatalin Marinas <catalin.marinas@arm.com>
      Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
      c4057f52
    • Catalin Marinas's avatar
      [ARM] 4818/1: RealView: Add core-tile detection · 7dd19e75
      Catalin Marinas authored
      This patch adds the core-tile detection and only enables devices if the
      corresponding tile is present. It currently detects the ARM11MPCore via
      the core_tile_eb11mp() macro.
      Signed-off-by: default avatarCatalin Marinas <catalin.marinas@arm.com>
      Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
      7dd19e75
    • Catalin Marinas's avatar
      [ARM] 4817/1: RealView: Move the AMBA resource definitions to realview_eb.c · 0fc2a161
      Catalin Marinas authored
      This patch moves the IRQ and DMA definitions from core.h into
      realview_eb.c since they are platform-specific. It adds a
      realview_eb11mp_fixup function to adjust the IRQ numbers if the
      ARM11MPCore tile is fitted. The realview_smc91x_device is also moved
      from core.c into realview_eb.c.
      Signed-off-by: default avatarCatalin Marinas <catalin.marinas@arm.com>
      Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
      0fc2a161
    • Catalin Marinas's avatar
      [ARM] 4816/1: RealView: Move the platform-specific definitions into board-eb.h · 356cb470
      Catalin Marinas authored
      This patch moves the platform specific definitions from platform.h into
      the board-eb.h file. It drops the INT_* definitions as they are no
      longer used in irqs.h (moved to board-eb.h). It renames REALVIEW_*
      macros to REALVIEW_EB_* or REALVIEW_EB11MP_* to distinguish between
      standard EB and EB + the ARM11MPCore tile. The platform.h file contains
      common definitions to the RealView platforms and it is only directly
      included in board-*.h files.
      Signed-off-by: default avatarCatalin Marinas <catalin.marinas@arm.com>
      Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
      356cb470