15 Jul, 2006

40 commits

  • Create a "taskstats" interface based on generic netlink (NETLINK_GENERIC
    family), for getting statistics of tasks and thread groups during their
    lifetime and when they exit. The interface is intended for use by multiple
    accounting packages though it is being created in the context of delay
    accounting.

    This patch creates the interface without populating the fields of the data
    that is sent to the user in response to a command or upon the exit of a task.
    Each accounting package interested in using taskstats has to provide an
    additional patch to add its stats to the common structure.

    [akpm@osdl.org: cleanups, Kconfig fix]
    Signed-off-by: Shailabh Nagar
    Signed-off-by: Balbir Singh
    Cc: Jes Sorensen
    Cc: Peter Chubb
    Cc: Erich Focht
    Cc: Levent Serinol
    Cc: Jay Lan
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Shailabh Nagar
     
  • Two utilities for simplifying usage of NETLINK_GENERIC interface.

    Signed-off-by: Balbir Singh
    Signed-off-by: Shailabh Nagar
    Cc: Jes Sorensen
    Cc: Peter Chubb
    Cc: Erich Focht
    Cc: Levent Serinol
    Cc: Jay Lan
    Cc: "David S. Miller"
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Balbir Singh
     
  • Make the task-related schedstats functions callable by delay accounting even
    if schedstats collection isn't turned on. This removes the dependency of
    delay accounting on schedstats.

    Signed-off-by: Chandra Seetharaman
    Signed-off-by: Shailabh Nagar
    Signed-off-by: Balbir Singh
    Cc: Jes Sorensen
    Cc: Peter Chubb
    Cc: Erich Focht
    Cc: Levent Serinol
    Cc: Jay Lan
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Chandra Seetharaman
     
  • Unlike earlier iterations of the delay accounting patches, now delays are only
    collected for the actual I/O waits rather than try and cover the delays seen
    in I/O submission paths.

    Account separately for block I/O delays incurred as a result of swapin page
    faults whose frequency can be affected by the task/process' rss limit. Hence
    swapin delays can act as feedback for rss limit changes independent of I/O
    priority changes.

    Signed-off-by: Shailabh Nagar
    Signed-off-by: Balbir Singh
    Cc: Jes Sorensen
    Cc: Peter Chubb
    Cc: Erich Focht
    Cc: Levent Serinol
    Cc: Jay Lan
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Shailabh Nagar
     
  • Initialization code related to collection of per-task "delay" statistics which
    measure how long it had to wait for cpu, sync block io, swapping etc. The
    collection of statistics and the interface are in other patches. This patch
    sets up the data structures and allows the statistics collection to be
    disabled through a kernel boot parameter.

    Signed-off-by: Shailabh Nagar
    Signed-off-by: Balbir Singh
    Cc: Jes Sorensen
    Cc: Peter Chubb
    Cc: Erich Focht
    Cc: Levent Serinol
    Cc: Jay Lan
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Shailabh Nagar
     
  • Add another list utility function to check for last element in a list.

    Signed-off-by: Shailabh Nagar
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Shailabh Nagar
     
  • Add frame buffer driver for the 2700G LCD controller present on CompuLab
    CM-X270 computer module.

    [adaplas]
    - Add more informative help text to Kconfig
    - Make DEBUG a Kconfig option as FB_MBX_DEBUG
    - Remove #include mbxdebug.c, this is frowned upon
    - Remove redundant casts
    - Arrange #include's alphabetically
    - Trivial whitespace

    Signed-off-by: Mike Rapoport
    Signed-off-by: Antonino Daplas
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Mike Rapoport
     
  • After some discussion on the actual meaning of the filesystem class
    security check in try context mount it was determined that the checks for
    the context= mount options were not correct if fscontext mount option had
    already been used.

    When labeling the superblock we should be checking relabel_from and
    relabel_to. But if the superblock has already been labeled (with
    fscontext) then context= is actually labeling the inodes, and so we should
    be checking relabel_from and associate. This patch fixes which checks are
    called depending on the mount options.

    Signed-off-by: Eric Paris
    Acked-by: Stephen Smalley
    Acked-by: James Morris
    Cc: Chris Wright
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Eric Paris
     
  • The lockdep options should depend on DEBUG_KERNEL since:
    - they are kernel debugging options and
    - they do otherwise break the DEBUG_KERNEL menu structure

    Signed-off-by: Adrian Bunk
    Acked-by: Ingo Molnar
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Adrian Bunk
     
  • Fix the start and len variables that should be using the new
    resource_size_t.

    Signed_off_by: Kylene Hall

    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Kylene Jo Hall
     
  • Some machine manufacturers are not sticking to the TCG specifications and
    including an ACPI DSDT entry for the TPM which allows PNP discovery of the
    device.

    Signed-off-by: Kylene Hall
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Kylene Jo Hall
     
  • Under stress testing I found that the interrupt is not always cleared.

    Signed-off-by: Kylene Hall
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Kylene Jo Hall
     
  • It's way past time to bump it to 8. Everyone had been warned - for
    months now.

    RH kernels have had this for more than a year.

    Signed-off-by: Al Viro
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Al Viro
     
  • Add actual mailing list email addresses for the 4 that were only listing a
    web page.

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

    Randy Dunlap
     
  • kfree(devname) on the misc_register() failure path. Otherwise it is lost
    forever.

    Signed-off-by: Randy Dunlap
    Cc: Kylene Jo Hall
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Randy Dunlap
     
  • On platforms that have __ARCH_WANT_UNLOCKED_CTXSW set and want to implement
    lock validator support there's a bug in rq->lock handling: in this case we
    dont 'carry over' the runqueue lock into another task - but still we did a
    spinlock_release() of it. Fix this by making the spinlock_release() in
    context_switch() dependent on !__ARCH_WANT_UNLOCKED_CTXSW.

    (Reported by Ralf Baechle on MIPS, which has __ARCH_WANT_UNLOCKED_CTXSW.
    This fixes a lockdep-internal BUG message on such platforms.)

    Signed-off-by: Ingo Molnar
    Cc: Ralf Baechle
    Cc: Arjan van de Ven
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Ingo Molnar
     
  • - rename EXPORTed gpio vtables from {scx200,pc8736x}_access to _gpio_ops new
    name is much closer to the vtable-name struct nsc_gpio_ops, should be
    clearer. Also rename the _fops vtable var to _fileops to better
    disambiguate it from the gpio vtable.

    Signed-off-by: Jim Cromie
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jim Cromie
     
  • - pure cosmetics: lose needless newlines.

    - rename EXPORTed gpio vtables from {scx200,pc8736x}_access to _gpio_ops new
    name is much closer to the vtable-name struct nsc_gpio_ops, should be
    clearer. Also rename the _fops vtable var to _fileops to better
    disambiguate it from the gpio vtable.

    Signed-off-by: Jim Cromie
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jim Cromie
     
  • drops gpio_set_high, gpio_set_low from the nsc_gpio_ops vtable. While we
    can't drop them from scx200_gpio (or can we?), we dont need them for new users
    of the exported vtable; gpio_set(1), gpio_set(0) work fine.

    Signed-off-by: Jim Cromie
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jim Cromie
     
  • pci_dac_set_dma_mask() gives only a single match in the whole kernel tree
    and that's in this doc file. The best candidate for replacement is
    pci_dac_dma_supported().

    Signed-off-by: Rolf Eike Beer
    Cc: Greg KH
    Acked-by: "David S. Miller"
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Rolf Eike Beer
     
  • Documentation for register_chrdev() was missing completely.

    [akpm@osdl.org: kerneldocification]
    Signed-off-by: Rolf Eike Beer
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Rolf Eike Beer
     
  • Currently, the code in lib/idr.c uses a bare spin_lock(&idp->lock) to do
    internal locking. This is a nasty trap for code that might call idr
    functions from different contexts; for example, it seems perfectly
    reasonable to call idr_get_new() from process context and idr_remove() from
    interrupt context -- but with the current locking this would lead to a
    potential deadlock.

    The simplest fix for this is to just convert the idr locking to use
    spin_lock_irqsave().

    In particular, this fixes a very complicated locking issue detected by
    lockdep, involving the ib_ipoib driver's priv->lock and dev->_xmit_lock,
    which get involved with the ib_sa module's query_idr.lock.

    Cc: Arjan van de Ven
    Cc: Ingo Molnar
    Cc: Zach Brown ,
    Signed-off-by: Roland Dreier
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Roland Dreier
     
  • On systems with block devices containing a slash (virtual dasd, cciss,
    etc), reiserfs will fail to initialize /proc/fs/reiserfs/ due to it
    being interpreted as a subdirectory. The generic block device code changes
    the / to ! for use in the sysfs tree. This patch uses that convention.

    Tested by making dm devices use dm/ rather than dm-

    [akpm@osdl.org: name variables consistently]
    Signed-off-by: Jeff Mahoney
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jeff Mahoney
     
  • Add the DRVNAME define to remove the two separate references of the driver
    name by string, and move the .driver.owner into the existing .driver
    sub-structure.

    Signed-off-by: Chris Boot
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Chris Boot
     
  • IRQs must be disabled before taking ->siglock.

    Noticed by lockdep.

    Signed-off-by: OGAWA Hirofumi
    Cc: Arjan van de Ven
    Cc: Ingo Molnar
    Cc: "Eric W. Biederman"
    Cc: Oleg Nesterov
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    OGAWA Hirofumi
     
  • Resolve problems seen w/ APM suspend.

    Due to resume initialization ordering, its possible we could get a timer
    interrupt before the timekeeping resume() function is called. This patch
    ensures we don't do any timekeeping accounting before we're fully resumed.

    (akpm: fixes the machine-freezes-on-APM-resume bug)

    Signed-off-by: John Stultz
    Cc: Roman Zippel
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    john stultz
     
  • Remove the scx200_gpio's cdev-array & ksalloc, replacing it with a single
    static struct cdev, which is sufficient for all the pins.

    cdev_put is commented out since kernel wont link properly with it, and its
    apparently not needed.

    With these patches, this driver continues to work with Chris Boot's
    leds_48xx driver.

    Signed-off-by Jim Cromie

    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jim Cromie
     
  • this patch is mostly cleanup of scx200_gpio :
    - drop #include
    - s/DEVNAME/DRVNAME/ apparently a convention
    - replace variable num_pins with #define MAX_PINS
    - s/dev/devid/ to clarify that its a dev_t, not a struct device dev.
    - move devid = MKDEV(major,0) into branch where its needed.

    2 minor 'changes' :

    - reduced MAX_PINS from 64 to 32. Ive never tested other pins, and
    theyre all multiplexed with other functions, some of which may be in use
    on my soekris 4801, so I dont know what testing should yield.

    - +EXPORT_SYMBOL(scx200_access);

    This exposes the driver's vtable, which another driver can use along
    with #include , to manipulate a gpio-pin.

    Signed-off-by Jim Cromie

    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jim Cromie
     
  • Christoph Hellwig:
    open_softirq just enables a softirq. The softirq array is statically
    allocated so to add a new one you would have to patch the kernel. So
    there's no point to keep this export at all as any user would have to
    patch the enum in include/linux/interrupt.h anyway.

    Signed-off-by: Adrian Bunk
    Acked-by: Ingo Molnar
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Adrian Bunk
     
  • Signed-off-by: Adrian Bunk
    Acked-by: Mike Miller
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Adrian Bunk
     
  • When CONFIG_RT_MUTEX_TESTER is enabled kernel refuses to suspend the
    machine because it's unable to freeze the rt-test-* threads.

    Add try_to_freeze() after schedule() so that the threads will be freezed
    correctly; I've tested the patch and it lets the notebook suspends and
    resumes nicely.

    Signed-off-by: Luca Tettamanti
    Cc: Ingo Molnar
    Acked-by: Thomas Gleixner
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Luca Tettamanti
     
  • The delete partition IOCTL takes the bd_mutex for both the disk and the
    partition; these have an obvious hierarchical relationship and this patch
    annotates this relationship for lockdep.

    Signed-off-by: Arjan van de Ven
    Acked-by: Ingo Molnar
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Arjan van de Ven
     
  • Add support for the I2C-attached Intersil ISL1208 RTC chip.

    [akpm@osdl.org: cleanups, fixlets]
    Signed-off-by: Herbert Valerio Riedel
    Cc: Alessandro Zummo
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Herbert Valerio Riedel
     
  • Make the ramdisk blocksize configurable at kernel compilation time rather
    than only at boot or module load time, like a couple of the other ramdisk
    options. I found this handy awhile back but thought little of it, until
    recently asked by a few of the testing folks here to be able to do the same
    thing for their automated test setups.

    The Kconfig comment is largely lifted from comments in rd.c, and hopefully
    this will increase the chances of making folks aware that the default value
    often isn't a great choice here (for increasing values of PAGE_SIZE, even
    moreso).

    Signed-off-by: Nathan Scott
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Nathan Scott
     
  • The default ramdisk blocksize is actually 1024, not 512 bytes. Also fixes
    up some trailing whitespace issues.

    Signed-off-by: Nathan Scott
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Nathan Scott
     
  • nommu.c needs to export two more symbols for drivers to use:
    remap_pfn_range and unmap_mapping_range.

    Signed-off-by: Luke Yang
    Cc: David Howells
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Luke Yang
     
  • There's no excuse for userspace abusing this kernel header -- the kernel's
    headers are not intended to provide a library of helper routines for
    userspace. Using from userspace is broken on most architectures
    anyway. Just say 'no'.

    Signed-off-by: David Woodhouse
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    David Woodhouse
     
  • This isn't suitable for userspace to see -- the kernel headers are not a
    random library of stuff for userspace; they're only there to define the
    kerneluser ABI for system libraries and tools. Anything which _was_
    abusing asm/atomic.h from userspace was probably broken anyway -- as it often
    didn't even give atomic operation.

    Signed-off-by: David Woodhouse
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    David Woodhouse
     
  • Remove asm/irq.h from the exported headers -- there was never any good reason
    for it to have been listed.

    Signed-off-by: David Woodhouse
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    David Woodhouse
     
  • Relax the CPU in the del_timer_sync() busywait loop.

    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Andrew Morton