29 Nov, 2010

6 commits

  • POWER5 added popcntb, and POWER7 added popcntw and popcntd. As a first step
    this patch does all the work out of line, but it would be nice to implement
    them as inlines with an out of line fallback.

    The performance issue with hweight was noticed when disabling SMT on a large
    (192 thread) POWER7 box. The patch improves that testcase by about 8%.

    Signed-off-by: Anton Blanchard
    Signed-off-by: Benjamin Herrenschmidt

    Anton Blanchard
     
  • This avoids some include-file hell, and the function isn't really
    important enough to be inlined anyway.

    Reported-by: Ingo Molnar
    Signed-off-by: Linus Torvalds

    Linus Torvalds
     
  • And in particular, use it in 'pipe_fcntl()'.

    The other pipe functions do not need to use the 'careful' version, since
    they are only ever called for things that are already known to be pipes.

    The normal read/write/ioctl functions are called through the file
    operations structures, so if a file isn't a pipe, they'd never get
    called. But pipe_fcntl() is special, and called directly from the
    generic fcntl code, and needs to use the same careful function that the
    splice code is using.

    Cc: Jens Axboe
    Cc: Andrew Morton
    Cc: Al Viro
    Cc: Dave Jones
    Signed-off-by: Linus Torvalds

    Linus Torvalds
     
  • .. and change it to take the 'file' pointer instead of an inode, since
    that's what all users want anyway.

    The renaming is preparatory to exporting it to other users. The old
    'pipe_info()' name was too generic and is already used elsewhere, so
    before making the function public we need to use a more specific name.

    Cc: Jens Axboe
    Cc: Andrew Morton
    Cc: Al Viro
    Cc: Dave Jones
    Signed-off-by: Linus Torvalds

    Linus Torvalds
     
  • …/git/tip/linux-2.6-tip

    * 'perf-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
    perf: Fix the software context switch counter
    perf, x86: Fixup Kconfig deps
    x86, perf, nmi: Disable perf if counters are not accessible
    perf: Fix inherit vs. context rotation bug

    Linus Torvalds
     
  • * 'fwnet' of git://git.kernel.org/pub/scm/linux/kernel/git/ieee1394/linux1394-2.6:
    firewire: net: throttle TX queue before running out of tlabels
    firewire: net: replace lists by counters
    firewire: net: fix memory leaks
    firewire: net: count stats.tx_packets and stats.tx_bytes

    Linus Torvalds
     

28 Nov, 2010

1 commit

  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound-2.6: (30 commits)
    ALSA: hda - Use ALC_INIT_DEFAULT for really default initialization
    ASoC: Fix resource reclaim for osk5912
    ASoC: tlv320aic3x - fix variable may be used uninitialized warning
    ASoC: davinci-vcif - fix a memory leak
    ASoC: phycore-ac97: fix resource leak
    ASoC: imx-ssi: fix resource leak
    ASoC: simone: fix resource leak in simone_init error path
    ASoC: sam9g20_wm8731: fix resource leak in at91sam9g20ek_init error path
    ASoC: snd-soc-afeb9260: remove unneeded platform_device_del in error path
    ASoC: pcm030-audio-fabric: fix resource leak in pcm030_fabric_init error path
    ASoC: efika-audio-fabric: fix resource leak in efika_fabric_init error path
    ASoC: Call snd_soc_unregister_dais instead of snd_soc_unregister_dai in sh4_soc_dai_remove
    ASoC: fix SND_PXA2XX_LIB Kconfig warning
    ALSA: hda - Fix ALC660-VD/ALC861-VD capture/playback mixers
    ALSA: HDA: Add an extra DAC for Realtek ALC887-VD
    ASoC: nuc900-ac97: fix a memory leak
    ASoC: Return proper error for omap3pandora_soc_init
    ASoC: wm8961 - clear WM8961_MCLKDIV bit for freq <= 16500000
    ASoC: wm8961 - clear WM8961_DACSLOPE bit for normal mode
    ALSA: hda - Fix Acer 7730G support
    ...

    Linus Torvalds
     

27 Nov, 2010

14 commits


26 Nov, 2010

7 commits

  • Stephane noticed that because the perf_sw_event() call is inside the
    perf_event_task_sched_out() call it won't get called unless we
    have a per-task counter.

    Reported-by: Stephane Eranian
    Signed-off-by: Peter Zijlstra
    LKML-Reference:
    Signed-off-by: Ingo Molnar

    Peter Zijlstra
     
  • This leads to a Kconfig dep inversion, x86 selects PERF_EVENT (due to
    a hw_breakpoint dep) but doesn't unconditionally provide
    HAVE_PERF_EVENT.

    (This can cause build failures on M386/M486 kernel .config's.)

    Signed-off-by: Peter Zijlstra
    LKML-Reference:
    Signed-off-by: Ingo Molnar

    Peter Zijlstra
     
  • In a kvm virt guests, the perf counters are not emulated. Instead they
    return zero on a rdmsrl. The perf nmi handler uses the fact that crossing
    a zero means the counter overflowed (for those counters that do not have
    specific interrupt bits). Therefore on kvm guests, perf will swallow all
    NMIs thinking the counters overflowed.

    This causes problems for subsystems like kgdb which needs NMIs to do its
    magic. This problem was discovered by running kgdb tests.

    The solution is to write garbage into a perf counter during the
    initialization and hopefully reading back the same number. On kvm
    guests, the value will be read back as zero and we disable perf as
    a result.

    Reported-by: Jason Wessel
    Patch-inspired-by: Peter Zijlstra
    Signed-off-by: Don Zickus
    Signed-off-by: Peter Zijlstra
    Cc: Stephane Eranian
    LKML-Reference:
    Signed-off-by: Ingo Molnar

    Don Zickus
     
  • It was found that sometimes children of tasks with inherited events had
    one extra event. Eventually it turned out to be due to the list rotation
    no being exclusive with the list iteration in the inheritance code.

    Cure this by temporarily disabling the rotation while we inherit the events.

    Signed-off-by: Thomas Gleixner
    Signed-off-by: Peter Zijlstra
    LKML-Reference:
    Cc:
    Signed-off-by: Ingo Molnar

    Thomas Gleixner
     
  • The stubs for CONFIG_INTR_REMAP disabled need to be functions
    instead of values to eliminate build warnings.

    arch/x86/kernel/apic/apic.c: In function 'lapic_suspend':
    arch/x86/kernel/apic/apic.c:2060:3: warning: statement with no effect
    arch/x86/kernel/apic/apic.c: In function 'lapic_resume':
    arch/x86/kernel/apic/apic.c:2137:3: warning: statement with no effect

    Reported-and-Tested-by: Fabio Comolli
    Signed-off-by: Randy Dunlap
    Cc: Suresh Siddha
    Cc: Yinghai Lu
    Cc: David Woodhouse
    Cc: Jesse Barnes
    LKML-Reference:
    Signed-off-by: Ingo Molnar

    Randy Dunlap
     
  • In current implementation, there are resources leak in the error path.
    This patch properly reclaims the allocated resources in the error path.

    Also adds a missing clk_put in osk_soc_exit.

    Signed-off-by: Axel Lin
    Acked-by: Jarkko Nikula
    Acked-by: Liam Girdwood
    Signed-off-by: Mark Brown

    Axel Lin
     
  • If aic3x_read failed , val is used uninitialized.
    Fix it by initializing val to 0.

    This patch fixes below compile warning:
    sound/soc/codecs/tlv320aic3x.c: In function 'aic3x_get_gpio':
    sound/soc/codecs/tlv320aic3x.c:1183: warning: 'val' may be used uninitialized in this function
    sound/soc/codecs/tlv320aic3x.c: In function 'aic3x_headset_detected':
    sound/soc/codecs/tlv320aic3x.c:1211: warning: 'val' may be used uninitialized in this function
    sound/soc/codecs/tlv320aic3x.c: In function 'aic3x_button_pressed':
    sound/soc/codecs/tlv320aic3x.c:1219: warning: 'val' may be used uninitialized in this function

    Signed-off-by: Axel Lin
    Acked-by: Liam Girdwood
    Signed-off-by: Mark Brown

    Axel Lin
     

25 Nov, 2010

12 commits