26 Dec, 2008

1 commit


13 Nov, 2008

1 commit

  • We have some reasons to kill netdev->priv:
    1. netdev->priv is equal to netdev_priv().
    2. netdev_priv() wraps the calculation of netdev->priv's offset, obviously
    netdev_priv() is more flexible than netdev->priv.
    But we cann't kill netdev->priv, because so many drivers reference to it
    directly.

    This patch is a safe convert for netdev->priv to netdev_priv(netdev).
    Since all of the netdev->priv is only for read.
    But it is too big to be sent in one mail.
    I split it to 4 parts and make every part smaller than 100,000 bytes,
    which is max size allowed by vger.

    Signed-off-by: Wang Chen
    Signed-off-by: David S. Miller

    Wang Chen
     

04 Nov, 2008

1 commit


25 Sep, 2008

1 commit


29 Mar, 2008

1 commit

  • The functions time_before, time_before_eq, time_after, and time_after_eq are
    more robust for comparing jiffies against other values.

    So use the time_after() macro, defined in linux/jiffies.h, which deals with
    wrapping correctly.

    [akpm@linux-foundation.org: coding-style fixes]
    Signed-off-by: S.Caglar Onur
    Signed-off-by: Andrew Morton
    Signed-off-by: Jeff Garzik

    S.Caglar Onur
     

17 Mar, 2008

1 commit


06 Mar, 2008

1 commit


13 Nov, 2007

1 commit


11 Oct, 2007

3 commits


25 May, 2007

1 commit


26 Apr, 2007

4 commits


18 Feb, 2007

1 commit

  • The modifications and bug fixes noted below were done by Realtime Control
    Works and Contemporary Control Systems, Inc, Jan 2005. They were
    incorporated into the 2.6 kernel by Jeff Morrow of Sierra Analytics, Feb
    2007.

    The changes have been tested on a Contemporary Controls PCI20U-4000.

    Summary of changes:

    Arc-rawmode.c:
    rx():
    - Fixed error in received packet lengths; 256 byte packets were
    being received as 257 bytes packets.

    prepare_tx():
    - Fixed error in transmit length calcs; 257 byte packets were being
    transmitted as 260 byte packets.

    com20020.c:
    com20020_check():
    - We now load the SETUP2 register if the 'clockm' parameter is
    non-zero, instead of checking for ARC_CAN_10MBIT. The user is
    now responsible for whether or not SETUP2 is loaded. If the
    clock multiplier is non-zero, this means that the user wants a
    baud rate greater than 2.5Mbps. This is not possible unless the
    SETUP2 register is present (COM20020D, or COM20022). So, we're
    relying on the user to be smart about what kind of chip he's
    dealing with...

    com20020-pci.c
    - Added several entries to com20020pci_id_table[].

    Signed-off-by: Jeff Morrow
    Cc: "David S. Miller"
    Cc: Jeff Garzik
    Signed-off-by: Andrew Morton
    Signed-off-by: Jeff Garzik

    Jeff Morrow
     

13 Feb, 2007

1 commit

  • 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
     

11 Nov, 2006

1 commit

  • com20020.c needs to export functions if either of the ISA or PCI modules
    are built as loadable modules. Or they could always be exported.

    WARNING: "com20020_found" [drivers/net/arcnet/com20020-pci.ko] undefined!
    WARNING: "com20020_check" [drivers/net/arcnet/com20020-pci.ko] undefined!

    Signed-off-by: Randy Dunlap
    Cc: Toralf Forster
    Signed-off-by: Andrew Morton
    Signed-off-by: Jeff Garzik

    Randy Dunlap
     

05 Oct, 2006

1 commit

  • Maintain a per-CPU global "struct pt_regs *" variable which can be used instead
    of passing regs around manually through all ~1800 interrupt handlers in the
    Linux kernel.

    The regs pointer is used in few places, but it potentially costs both stack
    space and code to pass it around. On the FRV arch, removing the regs parameter
    from all the genirq function results in a 20% speed up of the IRQ exit path
    (ie: from leaving timer_interrupt() to leaving do_IRQ()).

    Where appropriate, an arch may override the generic storage facility and do
    something different with the variable. On FRV, for instance, the address is
    maintained in GR28 at all times inside the kernel as part of general exception
    handling.

    Having looked over the code, it appears that the parameter may be handed down
    through up to twenty or so layers of functions. Consider a USB character
    device attached to a USB hub, attached to a USB controller that posts its
    interrupts through a cascaded auxiliary interrupt controller. A character
    device driver may want to pass regs to the sysrq handler through the input
    layer which adds another few layers of parameter passing.

    I've build this code with allyesconfig for x86_64 and i386. I've runtested the
    main part of the code on FRV and i386, though I can't test most of the drivers.
    I've also done partial conversion for powerpc and MIPS - these at least compile
    with minimal configurations.

    This will affect all archs. Mostly the changes should be relatively easy.
    Take do_IRQ(), store the regs pointer at the beginning, saving the old one:

    struct pt_regs *old_regs = set_irq_regs(regs);

    And put the old one back at the end:

    set_irq_regs(old_regs);

    Don't pass regs through to generic_handle_irq() or __do_IRQ().

    In timer_interrupt(), this sort of change will be necessary:

    - update_process_times(user_mode(regs));
    - profile_tick(CPU_PROFILING, regs);
    + update_process_times(user_mode(get_irq_regs()));
    + profile_tick(CPU_PROFILING);

    I'd like to move update_process_times()'s use of get_irq_regs() into itself,
    except that i386, alone of the archs, uses something other than user_mode().

    Some notes on the interrupt handling in the drivers:

    (*) input_dev() is now gone entirely. The regs pointer is no longer stored in
    the input_dev struct.

    (*) finish_unlinks() in drivers/usb/host/ohci-q.c needs checking. It does
    something different depending on whether it's been supplied with a regs
    pointer or not.

    (*) Various IRQ handler function pointers have been moved to type
    irq_handler_t.

    Signed-Off-By: David Howells
    (cherry picked from 1b16e7ac850969f38b375e511e3fa2f474a33867 commit)

    David Howells
     

25 Sep, 2006

1 commit

  • * 'upstream-linus' of master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/netdev-2.6: (217 commits)
    net/ieee80211: fix more crypto-related build breakage
    [PATCH] Spidernet: add ethtool -S (show statistics)
    [NET] GT96100: Delete bitrotting ethernet driver
    [PATCH] mv643xx_eth: restrict to 32-bit PPC_MULTIPLATFORM
    [PATCH] Cirrus Logic ep93xx ethernet driver
    r8169: the MMIO region of the 8167 stands behin BAR#1
    e1000, ixgb: Remove pointless wrappers
    [PATCH] Remove powerpc specific parts of 3c509 driver
    [PATCH] s2io: Switch to pci_get_device
    [PATCH] gt96100: move to pci_get_device API
    [PATCH] ehea: bugfix for register access functions
    [PATCH] e1000 disable device on PCI error
    drivers/net/phy/fixed: #if 0 some incomplete code
    drivers/net: const-ify ethtool_ops declarations
    [PATCH] ethtool: allow const ethtool_ops
    [PATCH] sky2: big endian
    [PATCH] sky2: fiber support
    [PATCH] sky2: tx pause bug fix
    drivers/net: Trim trailing whitespace
    [PATCH] ehea: IBM eHEA Ethernet Device Driver
    ...

    Manually resolved conflicts in drivers/net/ixgb/ixgb_main.c and
    drivers/net/sky2.c related to CHECKSUM_HW/CHECKSUM_PARTIAL changes by
    commit 84fa7933a33f806bbbaae6775e87459b1ec584c0 that just happened to be
    next to unrelated changes in this update.

    Linus Torvalds
     

23 Sep, 2006

1 commit


20 Aug, 2006

1 commit


03 Jul, 2006

1 commit


01 Jul, 2006

1 commit


03 Apr, 2006

1 commit

  • * git://git.kernel.org/pub/scm/linux/kernel/git/bunk/trivial: (48 commits)
    Documentation: fix minor kernel-doc warnings
    BUG_ON() Conversion in drivers/net/
    BUG_ON() Conversion in drivers/s390/net/lcs.c
    BUG_ON() Conversion in mm/slab.c
    BUG_ON() Conversion in mm/highmem.c
    BUG_ON() Conversion in kernel/signal.c
    BUG_ON() Conversion in kernel/signal.c
    BUG_ON() Conversion in kernel/ptrace.c
    BUG_ON() Conversion in ipc/shm.c
    BUG_ON() Conversion in fs/freevxfs/
    BUG_ON() Conversion in fs/udf/
    BUG_ON() Conversion in fs/sysv/
    BUG_ON() Conversion in fs/inode.c
    BUG_ON() Conversion in fs/fcntl.c
    BUG_ON() Conversion in fs/dquot.c
    BUG_ON() Conversion in md/raid10.c
    BUG_ON() Conversion in md/raid6main.c
    BUG_ON() Conversion in md/raid5.c
    Fix minor documentation typo
    BFP->BPF in Documentation/networking/tuntap.txt
    ...

    Linus Torvalds
     

02 Apr, 2006

1 commit


01 Apr, 2006

1 commit

  • WARNING: "__you_cannot_kzalloc_that_much" [drivers/net/arcnet/com90xx.ko] undefined!

    We're trying to allocate negative amounts of memory..

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

    Andrew Morton
     

17 Feb, 2006

1 commit


10 Feb, 2006

1 commit


29 Jan, 2006

1 commit


17 Jan, 2006

2 commits

  • This patch contains the following possible cleanups:
    - make needlessly global code static
    - arcnet.c: remove the unneeded EXPORT_SYMBOL(arc_proto_null)
    - arcnet.c: remove the unneeded EXPORT_SYMBOL(arcnet_dump_packet)

    To make Jeff happy, arcnet.c still prints
    arcnet: v3.93 BETA 2000/04/29 - by Avery Pennarun et al.

    Signed-off-by: Adrian Bunk
    Signed-off-by: Jeff Garzik

    Adrian Bunk
     
  • They deal with wrapping correctly and are nicer to read. Also make
    jiffies-holding variables unsigned long.

    Signed-off-by: Marcelo Feitoza Parisi
    Signed-off-by: Alexey Dobriyan
    Cc: Jeff Garzik
    Signed-off-by: Andrew Morton
    Signed-off-by: Jeff Garzik

    Marcelo Feitoza Parisi
     

13 Sep, 2005

1 commit


07 Sep, 2005

1 commit


06 May, 2005

1 commit


17 Apr, 2005

1 commit

  • Initial git repository build. I'm not bothering with the full history,
    even though we have it. We can create a separate "historical" git
    archive of that later if we want to, and in the meantime it's about
    3.2GB when imported into git - space that would just make the early
    git days unnecessarily complicated, when we don't have a lot of good
    infrastructure for it.

    Let it rip!

    Linus Torvalds