11 Sep, 2007

25 commits


10 Sep, 2007

4 commits

  • The previous patch had the conditional inverted. This patch fixes it
    so that we return the original position if it does not straddle a page.

    Thanks to Bob Gilligan for spotting this.

    Signed-off-by: Herbert Xu

    Herbert Xu
     
  • This fixes a bug in the way i2c-algo-bit handles I2C_M_RECV_LEN,
    used to implement i2c_smbus_read_block_data(). Previously, in the
    absence of PEC (rarely used!) it would NAK the "length" byte:

    S addr Rd [A] [length] NA

    That prevents the subsequent data bytes from being read:

    S addr Rd [A] [length] { A [data] }* NA

    The primary fix just reorders two code blocks, so the length used
    in the "should I NAK now?" check incorporates the data which it
    just read from the slave device.

    However, that move also highlighted other fault handling glitches.
    This fixes those by abstracting the RX path ack/nak logic, so it
    can be used in more than one location. Also, a few CodingStyle
    issues were also resolved.

    Signed-off-by: David Brownell
    Signed-off-by: Jean Delvare

    David Brownell
     
  • It turns out that platform_device.id is a "u32" so testing it for being
    nonnegative is useless when setting up an i2c adapte. Instead,
    do what the platform_bus code does and test it against the value "-1".

    Signed-off-by: Jean Delvare

    Jean Delvare
     
  • It turns out that platform_device.id is a "u32" so testing it for being
    nonnegative is useless when setting up an i2c bitbang device. Instead,
    do what the platform_bus code does and test it against the value "-1".

    Signed-off-by: David Brownell
    Acked-by: Atsushi Nemoto
    Signed-off-by: Jean Delvare

    David Brownell
     

09 Sep, 2007

2 commits

  • Fix an off-by-one error in the I/O region declaration of two
    hardware monitoring drivers (lm78 and w83781d.) We were requesting
    one extra port at the end of the region.

    Signed-off-by: Jean Delvare
    Signed-off-by: Mark M. Hoffman

    Jean Delvare
     
  • The function blkcipher_get_spot tries to return a buffer of
    the specified length that does not straddle a page. It has
    an off-by-one bug so it may advance a page unnecessarily.

    What's worse, one of its callers doesn't provide a buffer
    that's sufficiently long for this operation.

    This patch fixes both problems. Thanks to Bob Gilligan for
    diagnosing this problem and providing a fix.

    Signed-off-by: Herbert Xu

    Herbert Xu
     

08 Sep, 2007

1 commit

  • Fixes (papers over) "Sleep problems with kernels >= 2.6.21 on powerpc",
    http://lkml.org/lkml/2007/8/25/155. The issue is that the FireWire
    controller's pci_dev.current_state of iBook G3 and presumably older
    PowerBooks is still in PCI_UNKNOWN instead of PCI_D0 when the firewire
    driver's .suspend method is called.

    Like it was suggested earlier in http://lkml.org/lkml/2006/10/24/13, we
    do not fail .suspend anymore if pci_set_power_state failed.

    Signed-off-by: Stefan Richter

    Stefan Richter
     

06 Sep, 2007

2 commits

  • The names of STI and CLI macros were derived from i386 arch historically,
    but their name are incomprehensible.
    So, for easy to understand, rename these macros to ENABLE_INTERRUPTS
    and DISABLE_INTERRUPTS, respectively.

    Signed-off-by: Hirokazu Takata

    Hirokazu Takata
     
  • This patch fixes the following compile error:

    ...
    AS arch/m32r/kernel/entry.o
    /home/bunk/linux/kernel-2.6/linux-2.6.23-rc3-mm1/arch/m32r/kernel/entry.S: Assembler messages:
    /home/bunk/linux/kernel-2.6/linux-2.6.23-rc3-mm1/arch/m32r/kernel/entry.S:358: Error: bad instruction `addi r0,#(((((0)+(64))+(32))+(32)))'
    make[2]: *** [arch/m32r/kernel/entry.o] Error 1

    Signed-off-by: Hirokazu Takata
    Cc: Adrian Bunk

    Hirokazu Takata
     

05 Sep, 2007

6 commits

  • fix ideal_runtime:

    - do not scale it using niced_granularity()
    it is against sum_exec_delta, so its wall-time, not fair-time.

    - move the whole check into __check_preempt_curr_fair()
    so that wakeup preemption can also benefit from the new logic.

    this also results in code size reduction:

    text data bss dec hex filename
    13391 228 1204 14823 39e7 sched.o.before
    13369 228 1204 14801 39d1 sched.o.after

    Signed-off-by: Peter Zijlstra
    Signed-off-by: Ingo Molnar

    Peter Zijlstra
     
  • Second preparatory patch for fix-ideal runtime:

    Mark prev_sum_exec_runtime at the beginning of our run, the same spot
    that adds our wait period to wait_runtime. This seems a more natural
    location to do this, and it also reduces the code a bit:

    text data bss dec hex filename
    13397 228 1204 14829 39ed sched.o.before
    13391 228 1204 14823 39e7 sched.o.after

    Signed-off-by: Peter Zijlstra
    Signed-off-by: Ingo Molnar

    Peter Zijlstra
     
  • Preparatory patch for fix-ideal-runtime:

    simplify __check_preempt_curr_fair(): get rid of the integer return.

    text data bss dec hex filename
    13404 228 1204 14836 39f4 sched.o.before
    13393 228 1204 14825 39e9 sched.o.after

    functionality is unchanged.

    Signed-off-by: Peter Zijlstra
    Signed-off-by: Ingo Molnar

    Peter Zijlstra
     
  • rename RSR to SRR - 'RSR' is already defined on xtensa.

    found by Adrian Bunk.

    Signed-off-by: Ingo Molnar

    Ingo Molnar
     
  • when cleaning sched-stats also clear prev_sum_exec_runtime.

    Signed-off-by: Ingo Molnar

    Ingo Molnar
     
  • the cfs_rq->wait_runtime debug/statistics counter was not maintained
    properly - fix this.

    this also removes some code:

    text data bss dec hex filename
    13420 228 1204 14852 3a04 sched.o.before
    13404 228 1204 14836 39f4 sched.o.after

    Signed-off-by: Ingo Molnar
    Signed-off-by: Peter Zijlstra

    Ingo Molnar