06 Dec, 2006

1 commit


05 Dec, 2006

4 commits


02 Dec, 2006

1 commit


22 Nov, 2006

1 commit


07 Oct, 2006

1 commit


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
     

14 Sep, 2006

1 commit


12 Sep, 2006

2 commits


24 Aug, 2006

2 commits


20 Aug, 2006

1 commit


09 Aug, 2006

1 commit


03 Jul, 2006

1 commit


01 Jul, 2006

1 commit


27 Jun, 2006

1 commit

  • acquired (aquired)
    contiguous (contigious)
    successful (succesful, succesfull)
    surprise (suprise)
    whether (weather)
    some other misspellings

    Signed-off-by: Andreas Mohr
    Signed-off-by: Adrian Bunk

    Andreas Mohr
     

23 Jun, 2006

2 commits

  • First of all it is unnecessary to allocate a new skb in skb_pad since
    the existing one is not shared. More importantly, our hard_start_xmit
    interface does not allow a new skb to be allocated since that breaks
    requeueing.

    This patch uses pskb_expand_head to expand the existing skb and linearize
    it if needed. Actually, someone should sift through every instance of
    skb_pad on a non-linear skb as they do not fit the reasons why this was
    originally created.

    Incidentally, this fixes a minor bug when the skb is cloned (tcpdump,
    TCP, etc.). As it is skb_pad will simply write over a cloned skb. Because
    of the position of the write it is unlikely to cause problems but still
    it's best if we don't do it.

    Signed-off-by: Herbert Xu
    Signed-off-by: David S. Miller

    Herbert Xu
     
  • hi,

    coverity choked at this check (id #223), assuming that
    skb might be NULL and used anyways later. Since
    start_hard_xmit() always gets called with a valid
    skb, the check is useless and this patch removes it.

    Signed-off-by: Eric Sesterhenn
    Signed-off-by: Jeff Garzik

    Eric Sesterhenn
     

09 Jun, 2006

1 commit


06 Jun, 2006

1 commit


24 May, 2006

2 commits


20 May, 2006

1 commit


22 Apr, 2006

1 commit


13 Apr, 2006

1 commit


03 Apr, 2006

1 commit

  • * master.kernel.org:/pub/scm/linux/kernel/git/brodo/pcmcia-2.6: (33 commits)
    [PATCH] pcmcia: declare pccard_iodyn_ops (fix m8xx_pcmcia.c compilation error)
    [PATCH] pcmcia: fix pcmcia_device_remove oops
    [PATCH] pcmcia: Add support for Possio GCC AKA PCMCIA Siemens MC45
    [PATCH] pcmcia: pseudo device handling update
    [PATCH] pcmcia: convert DEV_OK to pcmcia_dev_present
    [PATCH] pcmcia: use bitfield instead of p_state and state
    [PATCH] pcmcia: remove unused p_dev->state flags
    [PATCH] pcmcia: make pcmcia_release_{io,irq} static
    [PATCH] pcmcia: add return value to _config() functions
    [PATCH] pcmcia: remove dev_link_t and client_handle_t indirection
    [PATCH] pcmcia: embed dev_link_t into struct pcmcia_device
    [PATCH] pcmcia: rename pcmcia_device.state
    [PATCH] pcmcia: remove unneeded Vcc pseudo setting
    [PATCH] pcmcia: remove export of pcmcia_release_configuration
    [PATCH] pcmcia: default suspend and resume handling
    [PATCH] pcmcia: convert remaining users of pcmcia_release_io and _irq
    [PATCH] pcmcia: add pcmcia_disable_device
    [PATCH] serial_cs: add Merlin U630 IDs
    [PATCH] pcmcia: AT91RM9200 Compact Flash driver
    [PATCH] pcmcia: socket.functions starts with 1
    ...

    Linus Torvalds
     

01 Apr, 2006

1 commit

  • The boot cmdline is parsed in parse_early_param() and
    parse_args(,unknown_bootoption).

    And __setup() is used in obsolete_checksetup().

    start_kernel()
    -> parse_args()
    -> unknown_bootoption()
    -> obsolete_checksetup()

    If __setup()'s callback (->setup_func()) returns 1 in
    obsolete_checksetup(), obsolete_checksetup() thinks a parameter was
    handled.

    If ->setup_func() returns 0, obsolete_checksetup() tries other
    ->setup_func(). If all ->setup_func() that matched a parameter returns 0,
    a parameter is seted to argv_init[].

    Then, when runing /sbin/init or init=app, argv_init[] is passed to the app.
    If the app doesn't ignore those arguments, it will warning and exit.

    This patch fixes a wrong usage of it, however fixes obvious one only.

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

    OGAWA Hirofumi
     

31 Mar, 2006

10 commits