05 Apr, 2011

9 commits

  • Update suitable words to explain / understand cgroups contents.

    Signed-off-by: Geunsik Lim
    Cc: Paul Menage
    Signed-off-by: Randy Dunlap
    Signed-off-by: Linus Torvalds

    Geunsik Lim
     
  • leds: move leds-class documentation under the leds/ subdir.
    Add also a leds/00-INDEX file describing the files under leds/

    Signed-off-by: Antonio Ospite
    Acked-by: Richard Purdie
    Cc: Andrew Morton
    Signed-off-by: Randy Dunlap
    Signed-off-by: Linus Torvalds

    Antonio Ospite
     
  • mm/kmemleak-test.c is used to provide an example of how kmemleak
    tool works.

    Memory is leaked at module unload-time, so building the test
    in kernel (Y) makes the leaks impossible and the test useless.

    Qualify DEBUG_KMEMLEAK_TEST config symbol with "depends on m",
    to restrict module-only building.

    Signed-off-by: Daniel Baluta
    Acked-by: Pekka Enberg
    Acked-by: Catalin Marinas
    Signed-off-by: Randy Dunlap
    Signed-off-by: Linus Torvalds

    Daniel Baluta
     
  • Fix some minor typos:
    * informations => information
    * there own => their own
    * these => this

    Signed-off-by: Sylvestre Ledru
    Signed-off-by: Randy Dunlap
    Signed-off-by: Linus Torvalds

    Sylvestre Ledru
     
  • Add a little more info for some of the panic-related kernel parameters.
    Fix "oops=panic" to fit in 80 columns.

    Signed-off-by: Randy Dunlap
    Reviewed-by: Jesper Juhl
    Signed-off-by: Linus Torvalds

    Randy Dunlap
     
  • Add kernel-doc to syscalls in signal.c.

    Signed-off-by: Randy Dunlap
    Signed-off-by: Linus Torvalds

    Randy Dunlap
     
  • General coding style and comment fixes; no code changes:

    - Use multi-line-comment coding style.
    - Put some function signatures completely on one line.
    - Hyphenate some words.
    - Spell Posix as POSIX.
    - Correct typos & spellos in some comments.
    - Drop trailing whitespace.
    - End sentences with periods.

    Signed-off-by: Randy Dunlap
    Signed-off-by: Linus Torvalds

    Randy Dunlap
     
  • Besides x86 and arm, kmemleak now supports powerpc, sparc, sh,
    microblaze and tile.

    Signed-off-by: Daniel Baluta
    Acked-by: Catalin Marinas
    Signed-off-by: Randy Dunlap
    Signed-off-by: Linus Torvalds

    Daniel Baluta
     
  • Commit f23eb2b2b285 ('tty: stop using "delayed_work" in the tty layer')
    ended up causing hung machines on UP with no preemption, because the
    work routine to flip the buffer data to the ldisc would endlessly re-arm
    itself if the destination buffer had filled up.

    With the delayed work, that only caused a timer-driving polling of the
    tty state every timer tick, but without the delay we just ended up with
    basically a busy loop instead.

    Stop the insane polling, and instead make the code that opens up the
    receive room re-schedule the buffer flip work. That's what we should
    have been doing anyway.

    This same "poll for tty room" issue is almost certainly also the cause
    of excessive kworker activity when idle reported by Dave Jones, who also
    reported "flush_to_ldisc executing 2500 times a second" back in Nov 2010:

    http://lkml.org/lkml/2010/11/30/592

    which is that silly flushing done every timer tick. Wasting both power
    and CPU for no good reason.

    Reported-and-tested-by: Alexander Beregalov
    Reported-and-tested-by: Sitsofe Wheeler
    Cc: Greg KH
    Cc: Alan Cox
    Cc: Dave Jones
    Signed-off-by: Linus Torvalds

    Linus Torvalds
     

04 Apr, 2011

10 commits


02 Apr, 2011

11 commits


01 Apr, 2011

10 commits

  • * 'merge' of git://git.kernel.org/pub/scm/linux/kernel/git/benh/powerpc:
    kdump: Allow shrinking of kdump region to be overridden
    powerpc/pmac/smp: Remove no-longer needed preempt workaround
    powerpc/smp: Increase vdso_data->processorCount, not just decrease it
    powerpc/smp: Create idle threads on demand and properly reset them
    powerpc/smp: Don't expose per-cpu "cpu_state" array
    powerpc/pmac/smp: Fix CPU hotplug crashes on some machines
    powerpc/smp: Add a smp_ops->bringup_up() done callback
    powerpc/pmac: Rename cpu_state in therm_pm72 to avoid collision
    powerpc/pmac/smp: Properly NAP offlined CPU on G5
    powerpc/pmac/smp: Remove HMT changes for PowerMac offline code
    powerpc/pmac/smp: Consolidate 32-bit and 64-bit PowerMac cpu_die in one file
    powerpc/pmac/smp: Fixup smp_core99_cpu_disable() and use it on 64-bit
    powerpc/pmac/smp: Rename fixup_irqs() to migrate_irqs() and use it on ppc32
    powerpc/pmac/smp: Fix 32-bit PowerMac cpu_die
    powerpc/smp: Remove unused smp_ops->cpu_enable()
    powerpc/smp: Remove unused generic_cpu_enable()
    powerpc/smp: Fix generic_mach_cpu_die()
    powerpc/smp: soft-replugged CPUs must go back to start_secondary
    powerpc: Make decrementer interrupt robust against offlined CPUs

    Linus Torvalds
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc-2.6:
    sparc32: Pass task_struct to schedule_tail() in ret_from_fork
    apbuart: Depend upon sparc.
    sparc64: Fix section mis-match errors.
    sparc32,leon: Fixed APBUART frequency detection
    sparc32, leon: APBUART driver must use archdata to get IRQ number
    sparc: Hook up syncfs system call.

    Linus Torvalds
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6:
    appletalk: Fix OOPS in atalk_release().
    mlx4: Fixing bad size of event queue buffer
    mlx4: Fixing use after free
    bonding:typo in comment
    sctp: Pass __GFP_NOWARN to hash table allocation attempts.
    connector: convert to synchronous netlink message processing
    fib: add rtnl locking in ip_fib_net_exit
    atm/solos-pci: Don't flap VCs when carrier state changes
    atm/solos-pci: Don't include frame pseudo-header on transmit hex-dump
    atm/solos-pci: Use VPI.VCI notation uniformly.
    Atheros, atl2: Fix mem leaks in error paths of atl2_set_eeprom
    netdev: fix mtu check when TSO is enabled
    net/usb: Ethernet quirks for the LG-VL600 4G modem
    phylib: phy_attach_direct: phy_init_hw can fail, add cleanup
    bridge: mcast snooping, fix length check of snooped MLDv1/2
    via-ircc: Pass PCI device pointer to dma_{alloc, free}_coherent()
    via-ircc: Use pci_{get, set}_drvdata() instead of static pointer variable
    net: gre: provide multicast mappings for ipv4 and ipv6
    bridge: Fix compilation warning in function br_stp_recalculate_bridge_id()
    net: Fix warnings caused by MAX_SKB_FRAGS change.

    Linus Torvalds
     
  • The MCE subsystem needs to sample an RCU-protected index outside of
    any protection for that index. If this was a pointer, we would use
    rcu_access_pointer(), but there is no corresponding rcu_access_index().
    This commit therefore creates an rcu_access_index() and applies it
    to MCE.

    Signed-off-by: Paul E. McKenney
    Tested-by: Zdenek Kabelac

    Paul E. McKenney
     
  • On ppc64 the crashkernel region almost always overlaps an area of firmware.
    This works fine except when using the sysfs interface to reduce the kdump
    region. If we free the firmware area we are guaranteed to crash.

    Rename free_reserved_phys_range to crash_free_reserved_phys_range and make
    it a weak function so we can override it.

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

    Anton Blanchard
     
  • The generic code properly re-initializes the preempt count in the
    idle thread now

    Signed-off-by: Benjamin Herrenschmidt

    Benjamin Herrenschmidt
     
  • Signed-off-by: Benjamin Herrenschmidt

    Benjamin Herrenschmidt
     
  • Instead of creating idle threads at boot for all possible CPUs, we
    create them on demand, like x86 or ARM, and we properly call init_idle
    to re-initialize an idle thread when a CPU was unplugged and is now
    re-plugged.

    Signed-off-by: Benjamin Herrenschmidt

    Benjamin Herrenschmidt
     
  • Instead, keep it static, expose an accessor and use that from
    the PowerMac code. Avoids easy namespace collisions and will
    make it easier to consolidate with other implementations.

    Signed-off-by: Benjamin Herrenschmidt

    Benjamin Herrenschmidt
     
  • On some machines that use i2c to synchronize the timebases (such
    as PowerMac7,2/7,3 G5 machines), hotplug CPU would crash when
    putting back a new CPU online due to the underlying i2c bus being
    closed.

    This uses the newly added bringup_done() callback to move the close
    along with other housekeeping calls, and adds a CPU notifier to
    re-open the i2c bus around subsequent hotplug operations

    Signed-off-by: Benjamin Herrenschmidt

    Benjamin Herrenschmidt