15 Feb, 2007

5 commits

  • The semantic effect of insert_at_head is that it would allow new registered
    sysctl entries to override existing sysctl entries of the same name. Which is
    pain for caching and the proc interface never implemented.

    I have done an audit and discovered that none of the current users of
    register_sysctl care as (excpet for directories) they do not register
    duplicate sysctl entries.

    So this patch simply removes the support for overriding existing entries in
    the sys_sysctl interface since no one uses it or cares and it makes future
    enhancments harder.

    Signed-off-by: Eric W. Biederman
    Acked-by: Ralf Baechle
    Acked-by: Martin Schwidefsky
    Cc: Russell King
    Cc: David Howells
    Cc: "Luck, Tony"
    Cc: Ralf Baechle
    Cc: Paul Mackerras
    Cc: Martin Schwidefsky
    Cc: Andi Kleen
    Cc: Jens Axboe
    Cc: Corey Minyard
    Cc: Neil Brown
    Cc: "John W. Linville"
    Cc: James Bottomley
    Cc: Jan Kara
    Cc: Trond Myklebust
    Cc: Mark Fasheh
    Cc: David Chinner
    Cc: "David S. Miller"
    Cc: Patrick McHardy
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Eric W. Biederman
     
  • Signed-off-by: Eric W. Biederman
    Cc: "John W. Linville"
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Eric W. Biederman
     
  • The obsolete SA_xxx interrupt flags have been used despite the scheduled
    removal. Fixup the remaining users in -mm.

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

    Thomas Gleixner
     
  • The obsolete SA_xxx interrupt flags have been used despite the scheduled
    removal. Fixup the remaining users.

    Signed-off-by: Thomas Gleixner
    Acked-by: Ingo Molnar
    Cc: "Luck, Tony"
    Cc: Roman Zippel
    Cc: Geert Uytterhoeven
    Cc: Jeff Garzik
    Cc: Wim Van Sebroeck
    Cc: Roland Dreier
    Cc: Alessandro Zummo
    Cc: James Bottomley
    Cc: Greg KH
    Cc: Dave Airlie
    Cc: James Simmons
    Cc: "Antonino A. Daplas"
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Thomas Gleixner
     
  • After Al Viro (finally) succeeded in removing the sched.h #include in module.h
    recently, it makes sense again to remove other superfluous sched.h includes.
    There are quite a lot of files which include it but don't actually need
    anything defined in there. Presumably these includes were once needed for
    macros that used to live in sched.h, but moved to other header files in the
    course of cleaning it up.

    To ease the pain, this time I did not fiddle with any header files and only
    removed #includes from .c-files, which tend to cause less trouble.

    Compile tested against 2.6.20-rc2 and 2.6.20-rc2-mm2 (with offsets) on alpha,
    arm, i386, ia64, mips, powerpc, and x86_64 with allnoconfig, defconfig,
    allmodconfig, and allyesconfig as well as a few randconfigs on x86_64 and all
    configs in arch/arm/configs on arm. I also checked that no new warnings were
    introduced by the patch (actually, some warnings are removed that were emitted
    by unnecessarily included header files).

    Signed-off-by: Tim Schmielau
    Acked-by: Russell King
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Tim Schmielau
     

14 Feb, 2007

8 commits


13 Feb, 2007

2 commits

  • Many struct file_operations in the kernel can be "const". Marking them const
    moves these to the .rodata section, which avoids false sharing with potential
    dirty data. In addition it'll catch accidental writes at compile time to
    these shared resources.

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

    Arjan van de Ven
     
  • Need to export com20020 symbols for com20020_cs also.

    WARNING: "com20020_found" [drivers/net/pcmcia/com20020_cs.ko] undefined!
    WARNING: "com20020_check" [drivers/net/pcmcia/com20020_cs.ko] undefined!

    Signed-off-by: Randy Dunlap
    Cc: Esben Nielsen
    Cc: Jeff Garzik
    Cc: Dominik Brodowski
    Cc: "David S. Miller"
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Randy Dunlap
     

12 Feb, 2007

1 commit


10 Feb, 2007

12 commits


09 Feb, 2007

7 commits

  • IEEE-1275 defines “local-mac-address” to be a standard
    property name to specify preassigned network address.
    This patch adds support for it.

    Signed-off-by: Li Yang
    Signed-off-by: Jeff Garzik

    Li Yang
     
  • The workaround used a long delay of 4s which caused problem
    when two link-changes happens at the same time.

    Signed-off-by: Li Yang
    Signed-off-by: Wu Xiaochuan
    Signed-off-by: Jeff Garzik

    Li Yang
     
  • This patch fixes the usage of sysfs attributes in cxgb3 for the -mm tree.
    It is built against the driver commited in the -mm tree.

    Signed-off-by: Divy Le Ray
    Cc: Greg KH
    Signed-off-by: Andrew Morton
    Signed-off-by: Jeff Garzik

    Divy Le Ray
     
  • Replace kmalloc() + memset() pairs with the appropriate kzalloc() calls in
    the bonding driver.

    Signed-off-by: Joe Jin
    Signed-off-by: Andrew Morton

    Joe Jin
     
  • During an oprofile session of linux-2.6.20 on a dual opteron system, I noticed
    an expensive divide was done in tg3_poll().

    I am using gcc-4.1.1, so the following comment from drivers/net/tg3.c seems
    over-optimistic :

    /* Do not place this n-ring entries value into the tp struct itself,
    * we really want to expose these constants to GCC so that modulo et
    * al. operations are done with shifts and masks instead of with
    * hw multiply/modulo instructions. Another solution would be to
    * replace things like '% foo' with '& (foo - 1)'.
    */
    #define TG3_RX_RCB_RING_SIZE(tp) \
    ((tp->tg3_flags2 & TG3_FLG2_5705_PLUS) ? 512 : 1024)

    Assembly code before patch :
    (oprofile results included)
    6434 0.0088 :ffffffff803684b9: mov 0x6f0(%r15),%eax
    587 8.0e-04 :ffffffff803684c0: and $0x40000,%eax
    2170 0.0030 :ffffffff803684c5: cmp $0x1,%eax
    :ffffffff803684c8: lea 0x1(%r13),%eax
    :ffffffff803684cc: sbb %ecx,%ecx
    2051 0.0028 :ffffffff803684ce: xor %edx,%edx
    :ffffffff803684d0: and $0x200,%ecx
    20 2.7e-05 :ffffffff803684d6: add $0x200,%ecx
    1986 0.0027 :ffffffff803684dc: div %ecx
    103427 0.1410 :ffffffff803684de: cmp %edx,0xffffffffffffff7c(%rbp)

    Assembly code after the suggested patch :

    ffffffff803684b9: mov 0x6f0(%r15),%eax
    ffffffff803684c0: and $0x40000,%eax
    ffffffff803684c5: cmp $0x1,%eax
    ffffffff803684c8: sbb %eax,%eax
    ffffffff803684ca: inc %r13d
    ffffffff803684cd: and $0x200,%eax
    ffffffff803684d2: add $0x1ff,%eax
    ffffffff803684d7: and %eax,%r13d
    ffffffff803684da: cmp %r13d,0xffffffffffffff7c(%rbp)

    Signed-off-by: Eric Dumazet
    Acked-by: Michael Chan
    Signed-off-by: David S. Miller

    Eric Dumazet
     
  • This patch replace kmalloc() + memset() pairs with the appropriate
    kzalloc().

    Signed-off-by: Joe Jin
    Signed-off-by: Andrew Morton
    Signed-off-by: David S. Miller

    Joe Jin
     
  • * master.kernel.org:/pub/scm/linux/kernel/git/paulus/powerpc: (116 commits)
    [POWERPC] Add export of vgacon_remap_base
    [POWERPC] Remove bogus comment about page_is_ram
    [POWERPC] windfarm: don't die on suspend thread signal
    [POWERPC] Fix comment in kernel/irq.c
    [POWERPC] ppc: Fix booke watchdog initialization
    [POWERPC] PPC: Use ARRAY_SIZE macro when appropriate
    [POWERPC] Use ARRAY_SIZE macro when appropriate
    [POWERPC] Fix ppc64's writing to struct file_operations
    [POWERPC] ppc: use syslog macro for the printk log level
    [POWERPC] ppc: cs4218_tdm remove extra brace
    [POWERPC] Add mpc52xx/lite5200 PCI support
    [POWERPC] Only use H_BULK_REMOVE if the firmware supports it
    [POWERPC] Fixup error handling when emulating a floating point instruction
    [POWERPC] Enable interrupts if we are doing fp math emulation
    [POWERPC] Added kprobes support to ppc32
    [POWERPC] Make pSeries use the H_BULK_REMOVE hypervisor call
    [POWERPC] Clear RI bit in MSR before restoring r13 when returning to userspace
    [POWERPC] Fix performance monitor exception
    [POWERPC] Compile fixes for arch/powerpc dcr code
    [POWERPC] Maple: use mmio nvram
    ...

    Linus Torvalds
     

08 Feb, 2007

5 commits

  • This driver is a modified version of the Attansic reference driver
    for the L1 ethernet adapter. Attansic has granted permission for
    its inclusion in the mainline kernel.

    Signed-off-by: Jeff Garzik

    Jay Cliburn
     
  • * master.kernel.org:/pub/scm/linux/kernel/git/gregkh/pci-2.6: (41 commits)
    Revert "PCI: remove duplicate device id from ata_piix"
    msi: Make MSI useable more architectures
    msi: Kill the msi_desc array.
    msi: Remove attach_msi_entry.
    msi: Fix msi_remove_pci_irq_vectors.
    msi: Remove msi_lock.
    msi: Kill msi_lookup_irq
    MSI: Combine pci_(save|restore)_msi/msix_state
    MSI: Remove pci_scan_msi_device()
    MSI: Replace pci_msi_quirk with calls to pci_no_msi()
    PCI: remove duplicate device id from ipr
    PCI: remove duplicate device id from ata_piix
    PCI: power management: remove noise on non-manageable hw
    PCI: cleanup MSI code
    PCI: make isa_bridge Alpha-only
    PCI: remove quirk_sis_96x_compatible()
    PCI: Speed up the Intel SMBus unhiding quirk
    PCI Quirk: 1k I/O space IOBL_ADR fix on P64H2
    shpchp: delete trailing whitespace
    shpchp: remove DBG_XXX_ROUTINE
    ...

    Linus Torvalds
     
  • * master.kernel.org:/pub/scm/linux/kernel/git/gregkh/driver-2.6: (28 commits)
    sysfs: Shadow directory support
    Driver Core: Increase the default timeout value of the firmware subsystem
    Driver core: allow to delay the uevent at device creation time
    Driver core: add device_type to struct device
    Driver core: add uevent vars for devices of a class
    SYSFS: Fix missing include of list.h in sysfs.h
    HOWTO: Add a reference to Harbison and Steele
    sysfs: error handling in sysfs, fill_read_buffer()
    kobject: kobject_put cleanup
    sysfs: kobject_put cleanup
    sysfs: suppress lockdep warnings
    Driver core: fix race in sysfs between sysfs_remove_file() and read()/write()
    driver core: Change function call order in device_bind_driver().
    driver core: Don't stop probing on ->probe errors.
    driver core fixes: device_register() retval check in platform.c
    driver core fixes: make_class_name() retval checks
    /sys/modules/*/holders
    USB: add the sysfs driver name to all modules
    SERIO: add the sysfs driver name to all modules
    PCI: add the sysfs driver name to all modules
    ...

    Linus Torvalds
     
  • The Atmel MACB Ethernet peripheral is also integrated in the AT91SAM9260
    and AT91SAM9263 processors. The differences from the AVR32 version are:
    * Single peripheral clock.
    * MII/RMII selection bit is inverted.
    * Clock enable bit.

    Original patch from Patrice Vilchez.

    Signed-off-by: Andrew Victor
    Signed-off-by: Haavard Skinnemoen
    Signed-off-by: Jeff Garzik

    Andrew Victor
     
  • Updated version for WOL and new id's

    Signed-off-by: Stephen Hemminger
    Signed-off-by: Jeff Garzik

    Stephen Hemminger