1. 09 5月, 2006 21 次提交
  2. 08 5月, 2006 10 次提交
  3. 07 5月, 2006 4 次提交
  4. 06 5月, 2006 5 次提交
    • R
      [ARM] rtc-sa1100: fix compiler warnings and error cleanup · f1226701
      Russell King 提交于
      Fix:
      drivers/rtc/rtc-sa1100.c: In function `sa1100_rtc_proc':
      drivers/rtc/rtc-sa1100.c:298: warning: unsigned int format, long unsigned int arg (arg 3)
      
      and arrange for sa1100_rtc_open() to pass the devid to free_irq()
      rather than NULL.
      Signed-off-by: NRussell King <rmk+kernel@arm.linux.org.uk>
      f1226701
    • R
      [ARM] Allow SA1100 RTC alarm to be configured for wakeup · 19ca5d27
      Russell King 提交于
      The SA1100 RTC alarm can be configured to wake up the CPU
      from sleep mode, and the RTC driver has been using the
      API to configure this mode.  Unfortunately, the code was
      which sets the required bit in the hardware was missing.
      Signed-off-by: NRussell King <rmk+kernel@arm.linux.org.uk>
      19ca5d27
    • J
      [TCP]: Fix snd_cwnd adjustments in tcp_highspeed.c · 5528e568
      John Heffner 提交于
      Xiaoliang (David) Wei wrote:
      > Hi gurus,
      > 
      >    I am reading the code of tcp_highspeed.c in the kernel and have a
      > question on the hstcp_cong_avoid function, specifically the following
      > AI part (line 136~143 in net/ipv4/tcp_highspeed.c ):
      > 
      >                /* Do additive increase */
      >                if (tp->snd_cwnd < tp->snd_cwnd_clamp) {
      >                        tp->snd_cwnd_cnt += ca->ai;
      >                        if (tp->snd_cwnd_cnt >= tp->snd_cwnd) {
      >                                tp->snd_cwnd++;
      >                                tp->snd_cwnd_cnt -= tp->snd_cwnd;
      >                        }
      >                }
      > 
      >    In this part, when (tp->snd_cwnd_cnt == tp->snd_cwnd),
      > snd_cwnd_cnt will be -1... snd_cwnd_cnt is defined as u16, will this
      > small chance of getting -1 becomes a problem?
      > Shall we change it by reversing the order of the cwnd++ and cwnd_cnt -= 
      > cwnd?
      
      Absolutely correct.  Thanks.
      Signed-off-by: NJohn Heffner <jheffner@psc.edu>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      5528e568
    • R
      [NETROM/ROSE]: Kill module init version kernel log messages. · f530937b
      Ralf Baechle 提交于
      There are out of date and don't tell the user anything useful.
      The similar messages which IPV4 and the core networking used
      to output were killed a long time ago.
      Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      f530937b
    • H
      [DCCP]: Fix sock_orphan dead lock · 134af346
      Herbert Xu 提交于
      Calling sock_orphan inside bh_lock_sock in dccp_close can lead to dead
      locks.  For example, the inet_diag code holds sk_callback_lock without
      disabling BH.  If an inbound packet arrives during that admittedly tiny
      window, it will cause a dead lock on bh_lock_sock.  Another possible
      path would be through sock_wfree if the network device driver frees the
      tx skb in process context with BH enabled.
      
      We can fix this by moving sock_orphan out of bh_lock_sock.
      
      The tricky bit is to work out when we need to destroy the socket
      ourselves and when it has already been destroyed by someone else.
      
      By moving sock_orphan before the release_sock we can solve this
      problem.  This is because as long as we own the socket lock its
      state cannot change.
      
      So we simply record the socket state before the release_sock
      and then check the state again after we regain the socket lock.
      If the socket state has transitioned to DCCP_CLOSED in the time being,
      we know that the socket has been destroyed.  Otherwise the socket is
      still ours to keep.
      
      This problem was discoverd by Ingo Molnar using his lock validator.
      Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      134af346