08 Sep, 2005

40 commits

  • The i386 OProfile code has a function named nmi_exit(), which collides with
    the nmi_exit() macro in linux/hardirq.h. At the moment, we get away with
    it, because hardirq.h isn't included in the oprofile code. I hit this as a
    bug when working with a patch which (indirectly) adds a #include of
    hardirq.h to oprofile.

    Regardless, the name collision is probably not a good idea, so this patch
    fixes it, renaming the oprofile function to op_nmi_exit(). It also renames
    the nmi_init() and nmi_timer_init() functions similarly, for consistency.

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

    David Gibson
     
  • IRQ_PER_CPU is not used by all architectures. This patch introduces the
    macros ARCH_HAS_IRQ_PER_CPU and CHECK_IRQ_PER_CPU() to avoid the generation
    of dead code in __do_IRQ().

    ARCH_HAS_IRQ_PER_CPU is defined by architectures using IRQ_PER_CPU in their
    include/asm_ARCH/irq.h file.

    Through grepping the tree I found the following architectures currently use
    IRQ_PER_CPU:

    cris, ia64, ppc, ppc64 and parisc.

    Signed-off-by: Karsten Wiese
    Acked-by: Ingo Molnar
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Karsten Wiese
     
  • Signed-off-by: H. Peter Anvin
    Cc: Frank Sorenson
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    H. Peter Anvin
     
  • This patch removes prototypes for the generic_file_open and
    generic_file_llseek functions.

    Besides being superfluous because they are already present in fs.h, they
    were also wrong because the actual functions aren't weak functions.

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

    Adrian Bunk
     
  • This patch contains the following updates to the help texts:
    - QUOTA: most people will get the quota utilities from their
    distribution, and if not the mini-HOWTO will tell them
    - QFMT_V2: quota utilities 3.01 are no longer recent, they are now
    ancient
    and 3.01 is lower than the minimal version documented in
    Documentation/Changes

    Signed-off-by: Adrian Bunk
    Acked-by: Jan Kara
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Adrian Bunk
     
  • This interface is said to be commonly used in germany: "The patch has been
    proven to work fine in a beige G3 Mac."
    http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=262324

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

    Maximilian Attems
     
  • cleanup of deadline_dispatch_requests():

    - replace drq selection with hopefully clearer while semantically the
    same construct: take write request, if there is any, otherwise take read
    one, or NULL if none exist.

    - kill unused other_dir.

    Signed-off-by: Nikita Danilov
    Cc: Jens Axboe
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Nikita Danilov
     
  • Since early userspace was added, there's no way to override which init to
    run from it. Some people tack on an extra cpio archive with a link from
    /init depending on what they want to run, but that's sometimes impractical.

    Changing the "init=" to also override the early userspace isn't feasible,
    since it is still used to indicate what init to run from disk when early
    userspace has completed doing whatever it's doing (i.e. load filesystem
    modules and drivers).

    Instead, introduce "rdinit=" and make it override the default "/init" if
    specified.

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

    Olof Johansson
     
  • This patch fixes bug titled "sunrpc as module and bad proc/sys link count"
    reported by Jiri Slaby.

    The problem was, that only proc_dir_entry->nlink was updated and the
    corresponding inode->i_nlink was not. The fix is to implement the
    inode->getattr() method, and update i_nlink (if necessary).

    A quick audit of proc code shows that no other attribute changes after
    creation.

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

    Miklos Szeredi
     
  • With "-W -Wno-unused -Wno-sign-compare" I get the following compile warning:

    CC kernel/workqueue.o
    kernel/workqueue.c: In function `workqueue_cpu_callback':
    kernel/workqueue.c:504: warning: ordered comparison of pointer with integer zero

    On error create_workqueue_thread() returns NULL, not negative pointer, so
    following trivial patch suggests itself.

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

    Mika Kukkonen
     
  • Add fsnotify_xattr() hook to removexattr().

    Signed-off-by: Robert Love
    Signed-off-by: John McCtuchan
    Cc: Andreas Gruenbacher
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Robert Love
     
  • This patch adds the Dell Systems Management Base Driver with sysfs support.

    This driver has been tested with Dell OpenManage.

    Signed-off-by: Doug Warzecha
    Cc: Greg KH
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Doug Warzecha
     
  • Remote BIOS Update driver for updating BIOS images on Dell servers and
    desktops. See dell_rbu.txt for details.

    Signed-off-by: Abhay Salunke
    Cc: Greg KH
    Signed-off-by: Jens Axboe
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Abhay Salunke
     
  • Upgrade the request_firmware_nowait function to not start the hotplug
    action on a firmware update.

    This patch is tested along with dell_rbu driver on i386 and x86-64 systems.

    Signed-off-by: Abhay Salunke
    Cc: Greg KH
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Abhay Salunke
     
  • OGAWA Hirofumi

    This speeds up directory reads for large FAT partitions, if the buffercache
    has to be filled from the drive. Following values were taken from:

    $ time find path_to_freshly_mounted_fat > /dev/null

    on an otherwise idle system.

    FAT with 16KB Clusters on IDE attached drive: Factor 2
    FAT with 32KB Clusters on USB2 attached drive: Factor 10 (!)
    Its less than 1/10 slower, if the buffercache is uptodate.

    The patch introduces the new function fat_dir_readahead().

    fat_dir_readahead() calls sb_breadahead() to readahead a whole cluster,
    if the requested sector is the first one in a cluster.
    It is usefull to do this, because on FAT directories occupy whole
    clusters, with the exception of FAT12/FAT16 root dirs.

    Readahead is only done, if the cluster's first sector is not uptodate
    to avoid overhead, when the buffer cache is already uptodate.
    Note that under memory pressure, the maximal byte count wasted
    (read: has to be red from disk twice) is 1 cluster's size. Thats 64KB.

    fat_dir_readahead() is called from fat__get_entry().

    There is also an unrelated cleanup at one spot:

    if (bh)
    brelse(bh);

    is replaced with:

    brelse(bh);

    brelse() can handle NULL pointer arguments by itself.

    Signed-off-by: Karsten Wiese
    Signed-off-by: OGAWA Hirofumi
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Karsten Wiese
     
  • Change the sequence of operations performed during module loading to flush
    the instruction cache before module parameters are processed. If a module
    has parameters of an unusual type that cannot be handled using the standard
    accessor functions param_set_xxx and param_get_xxx, it has to to provide a
    set of accessor functions for this type. This requires module code to be
    executed during parameter processing, which is of course only possible
    after the icache has been flushed.

    Signed-off-by: Thomas Koeller
    Cc: Rusty Russell
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Thomas Koeller
     
  • Change the /proc/sysvipc/shm|sem|msg files to use the generic seq_file
    implementation for struct ipc_ids.

    Signed-off-by: Mike Waychison
    Cc: Manfred Spraul
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Mike Waychison
     
  • The following two patches convert /proc/sysvipc/* to use seq_file.

    This gives us the following:

    - Self-consistent IPC records in proc.
    - O(n) reading of the files themselves.

    This patch:

    Add a generic method for ipc types to be displayed using seq_file. This
    patch abstracts out seq_file iterating over struct ipc_ids into ipc/util.c

    Signed-off-by: Mike Waychison
    Cc: Manfred Spraul
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Mike Waychison
     
  • When registering an RPC cache, cache_register() always sets the owner as the
    sunrpc module. However, there are RPC caches owned by other modules. With
    the incorrect owner setting, the real owning module can be removed potentially
    with an open reference to the cache from userspace.

    For example, if one were to stop the nfs server and unmount the nfsd
    filesystem, the nfsd module could be removed eventhough rpc.idmapd had
    references to the idtoname and nametoid caches (i.e.
    /proc/net/rpc/nfs4./channel is still open). This resulted in a
    system panic on one of our machines when attempting to restart the nfs
    services after reloading the nfsd module.

    The following patch adds a 'struct module *owner' field in struct
    cache_detail. The owner is further assigned to the struct proc_dir_entry
    in cache_register() so that the module cannot be unloaded while user-space
    daemons have an open reference on the associated file under /proc.

    Signed-off-by: Bruce Allan
    Cc: Trond Myklebust
    Cc: Neil Brown
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Bruce Allan
     
  • Use the DMA_32BIT_MASK constant from dma-mapping.h when calling
    pci_set_dma_mask() or pci_set_consistent_dma_mask() This patch includes
    dma-mapping.h explicitly because it caused errors on some architectures
    otherwise. See http://marc.theaimsgroup.com/?t=108001993000001&r=1&w=2 for
    details

    Signed-off-by: Tobias Klauser
    Signed-off-by: Stelian Pop
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Tobias Klauser
     
  • We don't reset the cache hit count until after readahead does a successful
    readahead. This seems to leave a corner case open where we miss in cache,
    but don't restart the readhead right away.

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

    Steven Pratt
     
  • Seems pointless to require .c files to test CONFIG_PNP_DEBUG and
    conditionally define DEBUG before including . Just test
    CONFIG_PNP_DEBUG directly in pnp.h.

    Signed-off-by: Bjorn Helgaas
    Cc: Adam Belay
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Bjorn Helgaas
     
  • Christoph Lameter

    When using a time interpolator that is susceptible to jitter there's
    potentially contention over a cmpxchg used to prevent time from going
    backwards. This is unnecessary when the caller holds the xtime write
    seqlock as all readers will be blocked from returning until the write is
    complete. We can therefore allow writers to insert a new value and exit
    rather than fight with CPUs who only hold a reader lock.

    Signed-off-by: Alex Williamson
    Signed-off-by: Christoph Lameter
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Alex Williamson
     
  • Remove old obsolete event.

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

    Stelian Pop
     
  • Newer Sony VAIO models (VGN-S480, VGN-S460, VGN-S3XP etc) use a new method to
    initialize the SPIC device. The new way to initialize (and disable) the
    device comes directly from the AML code in the _CRS, _SRS and _DIS methods
    from the DSDT table. This patch adds support for the new models.

    Signed-off-by: Erik Waling
    Signed-off-by: Stelian Pop
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Erik Waling
     
  • These no longer have any users.

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

    Zhigang Huo
     
  • this is the last serial driver not using initcalls.

    Signed-off-by: Christoph Hellwig
    Cc:
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Christoph Hellwig
     
  • this gets rid of the last two explicit initializations in misc.c

    Signed-off-by: Christoph Hellwig
    Acked-by: Geert Uytterhoeven
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Christoph Hellwig
     
  • Signed-off-by: Christoph Hellwig
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Christoph Hellwig
     
  • Signed-off-by: Christoph Hellwig
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Christoph Hellwig
     
  • I passed init=/mylinuxrc to the kernel on the command line. The kernel
    silently dropped down to exec /sbin/init. It turned out that /mylinuxrc
    had improper permissions. Without any warning message from the kernel that
    something was wrong it took awhile to find the issue. The patch below adds
    a warning.

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

    Avery, Brian
     
  • If /etc/mtab is a regular file all of the mount options (of a file system)
    are written to /etc/mtab by the mount command. The quota tools look there
    for the quota strings for their operation. If, however, /etc/mtab is a
    symlink to /proc/mounts (a "good thing" in some environments) the tools
    don't write anything - they assume the kernel will take care of things.

    While the quota options are sent down to the kernel via the mount system
    call and the file system codes handle them properly unfortunately there is
    no code to echo the quota strings into /proc/mounts and the quota tools
    fail in the symlink case.

    The attached patchs modify the EXT[2|3] and JFS codes to add the necessary
    hooks. The show_options function of each file system in these patches
    currently deal with only those things that seemed related to quotas;
    especially in the EXT3 case more can be done (later?).

    Jan Kara also noted the difficulty in moving these changes above the FS
    codes responding similarly to myself to Andrew's comment about possible
    VFS migration. Issue summary:

    - FS codes have to process the entire string of options anyway.

    - Only FS codes that use quotas must have a show_options function (for
    quotas to work properly) however quotas are only used in a small number
    of FS.

    - Since most of the quota using FS support other options these FS codes
    should have the a show_options function to show those options - and the
    quota echoing becomes virtually negligible.

    Based on feedback I have modified my patches from the original:

    JFS a missing patch has been restored to the posting
    EXT[2|3] and JFS always use the show_options function
    - Each FS has at least one FS specific option displayed
    - QUOTA output is under a CONFIG_QUOTA ifdef
    - a follow-on patch will add a multitude of options for each FS
    EXT[2|3] and JFS "quota" is treated as "usrquota"
    EXT3 journalled data check for journalled quota removed
    EXT[2|3] mount when quota specified but not compiled in

    - no changes from my original patch. I tested the patch and the codes
    warn but

    - still mount. With all due respection I believe the comments
    otherwise were a

    - misread of the patch. Please reread/test and comment. XFS patch
    removed - the XFS team already made the necessary changes EXT3 mixing
    old and new quotas are handled differently (not purely exclusive)

    - if old and new quotas for the same type are used together the old
    type is silently depricated for compatability (e.g. usrquota and
    usrjquota)

    - mixing of old and new quotas is an error (e.g. usrjquota and
    grpquota)

    Signed-off-by: Mark Bellon
    Acked-by: Dave Kleikamp
    Cc: Jan Kara
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Mark Bellon
     
  • Ensure that sound/arm/Makefile is sanely organised so that additions to it
    don't break all other patches out there. This means I only have to adjust
    the line numbers in my patch queue rather than having to re-generate by
    hand those which touch this file.

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

    Russell King
     
  • ISAPNP, PNPBIOS, and PNPACPI all had their own kmalloc wrappers that
    reimplemented kcalloc(). Remove the wrappers and just use kcalloc()
    directly.

    Note that this also removes the PNPBIOS error message when the kmalloc
    fails.

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

    Bjorn Helgaas
     
  • ToPIC95 brides (and maybe some other too) require to use the ExCA registers
    to power up the socket if a 16bit card is pluged. allow socket drivers to
    set a flag so that yenta does just that. also clean up yenta_get_status()
    a bit to use the new yenta_get_power() function.

    Side note: ToPIC97 bridges (at least in Rev.5 i have) don't require this.

    Ryan Underwood said:

    According to the mail that David Hinds received from a Toshiba engineer,
    ToPIC95 and 97 do require this, and ToPIC100 does not. Maybe you have a
    later revision.

    For all chips, 16-bit cards can be enabled through ExCA. So doesn't it
    make sense just to make this the default behavior for all Toshiba chips,
    to avoid corner cases showing up later?

    Daniel responded:

    I disagree with ryan to change anything for topic97 bridges. they work.
    and I couldn't find (read google) any report of a topic97 breaking on
    applying power with the CB registers.

    I'm having several toshba notebooks at work (and home) with topic95,97,100
    bridges. Only the ones with a topic95 didn't work.

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

    Daniel Ritz
     
  • The size of auxiliary vector is fixed at 42 in linux/sched.h. But it isn't
    very obvious when looking at linux/elf.h. This patch adds AT_VECTOR_SIZE
    so that we can change it if necessary when a new vector is added.

    Because of include file ordering problems, doing this necessitated the
    extraction of the AT_* symbols into a standalone header file.

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

    H. J. Lu
     
  • Simple patch to radix_tree_tag_get() to return different values for non
    present node and tag unset.

    The function is not used by any in-kernel callers (yet), but this
    information is definitely useful.

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

    Marcelo Tosatti
     
  • - There is frequent use of indirections in the radix code. This patch
    removes those indirections, makes the code more readable and allows
    the compilers to generate better code.

    - Removing indirections allows the removal of several casts.

    - Removing indirections allows the reduction of the radix_tree_path
    size from 3 to 2 words.

    - Use pathp-> consistently.

    - Remove unnecessary tmp variable in radix_tree_insert

    - Separate the upper layer processing from the lowest layer in __lookup()
    in order to make it easier to understand what is going on and allow
    compilers to generate better code for the loop.

    Signed-off-by: Christoph Lameter
    Cc: Nick Piggin
    Cc: James Bottomley
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Christoph Lameter
     
  • This adds support for powering Zaurus's video up and down. PDA without
    screen is kind of useless, so it is quite important... I'll have to figure
    out how to really control the frontlight, because LCD without that is quite
    hard to read.

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

    Pavel Machek
     
  • Signed-off-by: Alan Cox
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Alan Cox