10 Jan, 2012

2 commits

  • timer changes for msm

    A very simple series. We used to have more churn in the timer
    area, so this is kept separate. Will probably put this into the
    drivers series next time.

    * tag 'timer' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc:
    msm: timer: Use clockevents_config_and_register()
    msm: timer: Setup interrupt after registering clockevent
    msm: timer: Remove SoC specific #ifdefs
    msm: timer: Remove msm_clocks[] and simplify code
    msm: timer: Fix ONESHOT mode interrupts
    msm: timer: Use GPT for clockevents and DGT for clocksource
    msm: timer: Cleanup #includes and #defines
    msm: timer: Tighten #ifdef for local timer support

    Linus Torvalds
     
  • Cleanups on various subarchitectures

    Cleanup patches for various ARM platforms and some of their associated
    drivers, the bulk of these is for mach-91.

    Arnd ended up pulling in the restart branch from Russell in order to
    fix up some simple but annoying merge conflicts.

    * tag 'cleanup' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc: (44 commits)
    arm/at91: fix build of stamp9g20
    ARM: u300: delete memory.h
    MAINTAINERS: add maintainer entry for Picochip picoxcell
    ARM: picoxcell: move io mappings to common.c
    ARM: picoxcell: don't reserve irq_descs
    ARM: picoxcell: remove mach/memory.h
    ARM: at91: delete the pcontrol_g20_defconfig
    arm/tegra: Remove code that's ifndef CONFIG_ARM_GIC
    arm/tegra: remove unused defines
    arm/tegra: fix variable formatting in makefile
    ARM: davinci: vpif: move code to driver core header from platform
    ARM: at91/gpio: fix display of number of irq setuped
    ARM: at91/gpio: drop PIN_BASE
    ARM: at91/udc: use gpio_is_valid to check the gpio
    ARM: at91/ohci: use gpio_is_valid to check the gpio
    ARM: at91/nand: use gpio_is_valid to check the gpio
    ARM: at91/mmc: use gpio_is_valid to check the gpio
    ARM: at91/ide: use gpio_is_valid to check the gpio
    ARM: at91/pata: use gpio_is_valid to check the gpio
    ARM: at91/soc: use gpio_is_valid to check the gpio
    ...

    Linus Torvalds
     

09 Jan, 2012

1 commit

  • * 'for-linus2' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs: (165 commits)
    reiserfs: Properly display mount options in /proc/mounts
    vfs: prevent remount read-only if pending removes
    vfs: count unlinked inodes
    vfs: protect remounting superblock read-only
    vfs: keep list of mounts for each superblock
    vfs: switch ->show_options() to struct dentry *
    vfs: switch ->show_path() to struct dentry *
    vfs: switch ->show_devname() to struct dentry *
    vfs: switch ->show_stats to struct dentry *
    switch security_path_chmod() to struct path *
    vfs: prefer ->dentry->d_sb to ->mnt->mnt_sb
    vfs: trim includes a bit
    switch mnt_namespace ->root to struct mount
    vfs: take /proc/*/mounts and friends to fs/proc_namespace.c
    vfs: opencode mntget() mnt_set_mountpoint()
    vfs: spread struct mount - remaining argument of next_mnt()
    vfs: move fsnotify junk to struct mount
    vfs: move mnt_devname
    vfs: move mnt_list to struct mount
    vfs: switch pnode.h macros to struct mount *
    ...

    Linus Torvalds
     

08 Jan, 2012

1 commit

  • * 'driver-core-next' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core: (73 commits)
    arm: fix up some samsung merge sysdev conversion problems
    firmware: Fix an oops on reading fw_priv->fw in sysfs loading file
    Drivers:hv: Fix a bug in vmbus_driver_unregister()
    driver core: remove __must_check from device_create_file
    debugfs: add missing #ifdef HAS_IOMEM
    arm: time.h: remove device.h #include
    driver-core: remove sysdev.h usage.
    clockevents: remove sysdev.h
    arm: convert sysdev_class to a regular subsystem
    arm: leds: convert sysdev_class to a regular subsystem
    kobject: remove kset_find_obj_hinted()
    m86k: gpio - convert sysdev_class to a regular subsystem
    mips: txx9_sram - convert sysdev_class to a regular subsystem
    mips: 7segled - convert sysdev_class to a regular subsystem
    sh: dma - convert sysdev_class to a regular subsystem
    sh: intc - convert sysdev_class to a regular subsystem
    power: suspend - convert sysdev_class to a regular subsystem
    power: qe_ic - convert sysdev_class to a regular subsystem
    power: cmm - convert sysdev_class to a regular subsystem
    s390: time - convert sysdev_class to a regular subsystem
    ...

    Fix up conflicts with 'struct sysdev' removal from various platform
    drivers that got changed:
    - arch/arm/mach-exynos/cpu.c
    - arch/arm/mach-exynos/irq-eint.c
    - arch/arm/mach-s3c64xx/common.c
    - arch/arm/mach-s3c64xx/cpu.c
    - arch/arm/mach-s5p64x0/cpu.c
    - arch/arm/mach-s5pv210/common.c
    - arch/arm/plat-samsung/include/plat/cpu.h
    - arch/powerpc/kernel/sysfs.c
    and fix up cpu_is_hotpluggable() as per Greg in include/linux/cpu.h

    Linus Torvalds
     

07 Jan, 2012

2 commits

  • Conflicts:
    arch/arm/mach-at91/at91cap9.c
    arch/arm/mach-at91/at91sam9260.c
    arch/arm/mach-at91/at91sam9261.c
    arch/arm/mach-at91/at91sam9263.c
    arch/arm/mach-at91/at91sam9g45.c
    arch/arm/mach-at91/at91sam9rl.c
    arch/arm/mach-exynos/cpu.c
    arch/arm/mach-shmobile/board-kota2.c

    This resolves a bunch of conflicts between the arm-soc tree
    and changes from the arm tree that have gone upstream.

    Signed-off-by: Arnd Bergmann

    Arnd Bergmann
     
  • This resolves the conflict in the arch/arm/mach-s3c64xx/s3c6400.c file,
    and it fixes the build error in the arch/x86/kernel/microcode_core.c
    file, that the merge did not catch.

    The microcode_core.c patch was provided by Stephen Rothwell
    who was invaluable in the merge issues involved
    with the large sysdev removal process in the driver-core tree.

    Signed-off-by: Greg Kroah-Hartman

    Greg Kroah-Hartman
     

05 Jan, 2012

4 commits


04 Jan, 2012

1 commit


22 Dec, 2011

1 commit

  • The sysdev.h file should not be needed by any in-kernel code, so remove
    the .h file from these random files that seem to still want to include
    it.

    The sysdev code will be going away soon, so this include needs to be
    removed no matter what.

    Cc: Jiandong Zheng
    Cc: Scott Branden
    Cc: Russell King
    Cc: Kukjin Kim
    Cc: David Brown
    Cc: Daniel Walker
    Cc: Bryan Huntsman
    Cc: Ben Dooks
    Cc: Wan ZongShun
    Cc: Haavard Skinnemoen
    Cc: Hans-Christian Egtvedt
    Cc: Guan Xuetao
    Cc: "Venkatesh Pallipadi
    Cc: Thomas Gleixner
    Cc: Ingo Molnar
    Cc: "H. Peter Anvin"
    Cc: Grant Likely
    Cc: Richard Purdie
    Cc: Matthew Garrett
    Signed-off-by: Kay Sievers

    Kay Sievers
     

20 Dec, 2011

2 commits


19 Dec, 2011

1 commit

  • Making SMP depend on (huge list of MACH_ and ARCH_ configs) is
    bothersome to maintain and likely to lead to merge conflicts.

    This patch moves the knowledge of which platforms are SMP-capable
    to the individual machines. To enable this, a new HAVE_SMP config
    option is introduced to allow machines to indicate that they can
    run in a SMP configuration.

    Signed-off-by: Dave Martin
    Acked-by: Linus Walleij
    (for nomadik, ux500)
    Acked-by: Tony Lindgren
    (for omap)
    Acked-by: Kukjin Kim
    (for exynos)
    Acked-by: Sascha Hauer
    (for imx)
    Acked-by: Olof Johansson
    (for tegra)

    Dave Martin
     

16 Dec, 2011

1 commit


10 Dec, 2011

1 commit


06 Dec, 2011

2 commits


01 Dec, 2011

1 commit


27 Nov, 2011

1 commit


16 Nov, 2011

2 commits


12 Nov, 2011

1 commit


11 Nov, 2011

10 commits

  • Don't open code the min/max delta logic. Use the generic
    version instead. Also expand the number of bits we can handle
    because there isn't anything that says we can't handle all 32
    bits.

    Before:
    max_delta_ns: 122880426391799
    min_delta_ns: 122070
    mult: 140737
    shift: 32

    After:
    max_delta_ns: 131071523464981
    min_delta_ns: 122069
    mult: 70369
    shift: 31

    Signed-off-by: Stephen Boyd
    Cc: Thomas Gleixner
    Cc: Marc Zyngier
    Signed-off-by: David Brown

    Stephen Boyd
     
  • Some bootloaders may leave a pending interrupt for the timer and
    thus msm_timer_interrupt() has a check for a NULL event handler.
    Unmask and register for the interrupt after registering the
    clockevent so that we can get the NULL pointer check out of the
    fast path.

    Signed-off-by: Stephen Boyd
    Cc: Thomas Gleixner
    Cc: Marc Zyngier
    Signed-off-by: David Brown

    Stephen Boyd
     
  • The timer frequency is currently ifdefed in addition to setting
    the DGT clock's divider value on SCORPIONMP targets. Setup the
    frequency dynamically using the existing cpu_is_*() branches and
    assign a custom clocksource read function for 7x01a to get the
    shift out of the generic path.

    Signed-off-by: Stephen Boyd
    Cc: Thomas Gleixner
    Cc: Marc Zyngier
    Signed-off-by: David Brown

    Stephen Boyd
     
  • We can simplify the timer code now that we only use the DGT for
    the clocksource and the GPT for the clockevent. Get rid of the
    msm_clocks[] array and propagate the changes throughout the code.
    This reduces the lines of code in this file and improves
    readability.

    Signed-off-by: Stephen Boyd
    Cc: Thomas Gleixner
    Cc: Marc Zyngier
    Signed-off-by: David Brown

    Stephen Boyd
     
  • MSM timers don't support an interrupt enable/disable bit.
    Therefore, when the timer is free running it's possible for the
    count to wrap and the match value to match again even though a
    set_next_event() call hasn't been made since the last match.

    Workaround the lack of an interrupt enable bit by explicitly
    stopping the timer in the interrupt handler when the clockevent
    is in ONESHOT mode. This should prevent any possibility of the
    timer wrapping and matching more than once per set_next_event().

    Signed-off-by: Stephen Boyd
    Cc: Thomas Gleixner
    Cc: Marc Zyngier
    Signed-off-by: David Brown

    Stephen Boyd
     
  • The clocksource shouldn't stop ticking when the clockevent stops.
    This is exactly what happens today with MSM timers. The same
    hardware is used for both the clockevent and the clocksource
    because the ratings of the two are the same.

    Fix this by registering a clockevent based on the GPT and a
    clocksource based on the DGT. This removes any other possible
    configuration (e.g. a GPT clocksource and a DGT clockevent) but
    that shouldn't be a big issue since we want higher precision
    timing than high precision scheduling interrupts.

    Signed-off-by: Stephen Boyd
    Cc: Thomas Gleixner
    Cc: Marc Zyngier
    Signed-off-by: David Brown

    Stephen Boyd
     
  • Remove unused/unnecessary #defines, #includes, and use the BIT
    macro appropriately.

    Signed-off-by: Stephen Boyd
    Signed-off-by: David Brown

    Stephen Boyd
     
  • It is more correct to only define the local timer support code
    when CONFIG_LOCAL_TIMERS=y.

    Signed-off-by: Stephen Boyd
    Signed-off-by: David Brown

    Stephen Boyd
     
  • Add support for DEBUG_LL on the 8660 and 8960 development boards.
    While we're here cleanup the uncompress.h code a bit. Avoid
    the use of readl/writel as those are Linux specific APIs that
    aren't guaranteed to work in the decompressor.

    Cc: Nicolas Pitre
    Signed-off-by: Stephen Boyd
    Acked-by: Nicolas Pitre
    Signed-off-by: David Brown

    Stephen Boyd
     
  • Now that DEBUG_LL is a choice we can move MSM's homegrown choice
    menu to DEBUG_LL.

    Signed-off-by: Stephen Boyd
    Signed-off-by: David Brown

    Stephen Boyd
     

10 Nov, 2011

1 commit


09 Nov, 2011

1 commit


07 Nov, 2011

1 commit

  • * 'modsplit-Oct31_2011' of git://git.kernel.org/pub/scm/linux/kernel/git/paulg/linux: (230 commits)
    Revert "tracing: Include module.h in define_trace.h"
    irq: don't put module.h into irq.h for tracking irqgen modules.
    bluetooth: macroize two small inlines to avoid module.h
    ip_vs.h: fix implicit use of module_get/module_put from module.h
    nf_conntrack.h: fix up fallout from implicit moduleparam.h presence
    include: replace linux/module.h with "struct module" wherever possible
    include: convert various register fcns to macros to avoid include chaining
    crypto.h: remove unused crypto_tfm_alg_modname() inline
    uwb.h: fix implicit use of asm/page.h for PAGE_SIZE
    pm_runtime.h: explicitly requires notifier.h
    linux/dmaengine.h: fix implicit use of bitmap.h and asm/page.h
    miscdevice.h: fix up implicit use of lists and types
    stop_machine.h: fix implicit use of smp.h for smp_processor_id
    of: fix implicit use of errno.h in include/linux/of.h
    of_platform.h: delete needless include
    acpi: remove module.h include from platform/aclinux.h
    miscdevice.h: delete unnecessary inclusion of module.h
    device_cgroup.h: delete needless include
    net: sch_generic remove redundant use of
    net: inet_timewait_sock doesnt need
    ...

    Fix up trivial conflicts (other header files, and removal of the ab3550 mfd driver) in
    - drivers/media/dvb/frontends/dibx000_common.c
    - drivers/media/video/{mt9m111.c,ov6650.c}
    - drivers/mfd/ab3550-core.c
    - include/linux/dmaengine.h

    Linus Torvalds
     

02 Nov, 2011

3 commits

  • * 'next/dt' of git://git.linaro.org/people/arnd/arm-soc:
    ARM: gic: use module.h instead of export.h
    ARM: gic: fix irq_alloc_descs handling for sparse irq
    ARM: gic: add OF based initialization
    ARM: gic: add irq_domain support
    irq: support domains with non-zero hwirq base
    of/irq: introduce of_irq_init
    ARM: at91: add at91sam9g20 and Calao USB A9G20 DT support
    ARM: at91: dt: at91sam9g45 family and board device tree files
    arm/mx5: add device tree support for imx51 babbage
    arm/mx5: add device tree support for imx53 boards
    ARM: msm: Add devicetree support for msm8660-surf
    msm_serial: Add devicetree support
    msm_serial: Use relative resources for iomem

    Fix up conflicts in arch/arm/mach-at91/{at91sam9260.c,at91sam9g45.c}

    Linus Torvalds
     
  • * 'next/cross-platform' of git://git.linaro.org/people/arnd/arm-soc:
    arm/imx: use Kconfig choice for low-level debug UART selection
    ARM: realview: use Kconfig choice for debug UART selection
    ARM: plat-samsung: use Kconfig choice for debug UART selection
    ARM: versatile: convert logical CPU numbers to physical numbers
    ARM: ux500: convert logical CPU numbers to physical numbers
    ARM: shmobile: convert logical CPU numbers to physical numbers
    ARM: msm: convert logical CPU numbers to physical numbers
    ARM: exynos4: convert logical CPU numbers to physical numbers

    Fix up trivial conflict (config DEBUG_S3C_UART move/split vs addition of
    ARM_KPROBES_TEST option) in arch/arm/Kconfig.debug

    Linus Torvalds
     
  • After 0744a3ee (ARM: platform fixups: remove mdesc argument to
    fixup function, 2010-12-20) the fixup functions introduced in
    9e775ad (ARM: 7012/1: Set proper TEXT_OFFSET for newer MSMs,
    2011-08-12) cause warnings like:

    arch/arm/mach-msm/board-msm8x60.c:85: warning: initialization
    from incompatible pointer type

    Fix them by removing the machine_desc argument from the fixup
    functions.

    Signed-off-by: Stephen Boyd
    Signed-off-by: David Brown

    Stephen Boyd