1. 13 4月, 2010 1 次提交
    • J
      time: Remove xtime_cache · 6a867a39
      John Stultz 提交于
      With the earlier logarithmic time accumulation patch, xtime will now
      always be within one "tick" of the current time, instead of possibly
      half a second off.
      
      This removes the need for the xtime_cache value, which always stored the
      time at the last interrupt, so this patch cleans that up removing the
      xtime_cache related code.
      
      This patch also addresses an issue with an earlier version of this change,
      where xtime_cache was normalizing xtime, which could in some cases be
      not valid (ie: tv_nsec == NSEC_PER_SEC). This is fixed by handling
      the edge case in update_wall_time().
      Signed-off-by: NJohn Stultz <johnstul@us.ibm.com>
      Cc: Petr Titěra <P.Titera@century.cz>
      LKML-Reference: <1270589451-30773-1-git-send-email-johnstul@us.ibm.com>
      Signed-off-by: NThomas Gleixner <tglx@linutronix.de>
      6a867a39
  2. 07 4月, 2010 3 次提交
    • C
      mqueue: Convert message queue timeout to use hrtimers · 9ca7d8e6
      Carsten Emde 提交于
      The message queue functions mq_timedsend() and mq_timedreceive()
      have not yet been converted to use the hrtimer interface.
      
      This patch replaces the call to schedule_timeout() by a call to
      schedule_hrtimeout() and transforms the expiration time from
      timespec to ktime as required.
      
      [ tglx: Fixed whitespace wreckage ]
      Signed-off-by: NCarsten Emde <C.Emde@osadl.org>
      Tested-by: NPradyumna Sampath <pradysam@gmail.com>
      Cc: Arjan van de Veen <arjan@infradead.org>
      Cc: Andrew Morton <akpm@linux-foundation.org>
      LKML-Reference: <20100402204331.715783034@osadl.org>
      Signed-off-by: NThomas Gleixner <tglx@linutronix.de>
      9ca7d8e6
    • C
      hrtimers: Provide schedule_hrtimeout for CLOCK_REALTIME · 351b3f7a
      Carsten Emde 提交于
      The current version of schedule_hrtimeout() always uses the
      monotonic clock. Some system calls such as mq_timedsend()
      and mq_timedreceive(), however, require the use of the wall
      clock due to the definition of the system call.
      
      This patch provides the infrastructure to use schedule_hrtimeout() 
      with a CLOCK_REALTIME timer.
      Signed-off-by: NCarsten Emde <C.Emde@osadl.org>
      Tested-by: NPradyumna Sampath <pradysam@gmail.com>
      Cc: Andrew Morton <akpm@linux-foundation.org>
      Cc: Arjan van de Veen <arjan@infradead.org>
      LKML-Reference: <20100402204331.167439615@osadl.org>
      Signed-off-by: NThomas Gleixner <tglx@linutronix.de>
      351b3f7a
    • A
      timers: Introduce the concept of timer slack for legacy timers · 3bbb9ec9
      Arjan van de Ven 提交于
      While HR timers have had the concept of timer slack for quite some time
      now, the legacy timers lacked this concept, and had to make do with
      round_jiffies() and friends.
      
      Timer slack is important for power management; grouping timers reduces the
      number of wakeups which in turn reduces power consumption.
      
      This patch introduces timer slack to the legacy timers using the following
      pieces:
      * A slack field in the timer struct
      * An api (set_timer_slack) that callers can use to set explicit timer slack
      * A default slack of 0.4% of the requested delay for callers that do not set
        any explicit slack
      * Rounding code that is part of mod_timer() that tries to
        group timers around jiffies values every 'power of two'
        (so quick timers will group around every 2, but longer timers
        will group around every 4, 8, 16, 32 etc)
      Signed-off-by: NArjan van de Ven <arjan@linux.intel.com>
      Cc: johnstul@us.ibm.com
      Cc: Ingo Molnar <mingo@elte.hu>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NThomas Gleixner <tglx@linutronix.de>
      3bbb9ec9
  3. 24 3月, 2010 2 次提交
  4. 15 3月, 2010 32 次提交
  5. 14 3月, 2010 2 次提交
    • I
      x86/mce: Fix build bug with CONFIG_PROVE_LOCKING=y && CONFIG_X86_MCE_INTEL=y · 2aa2b50d
      Ingo Molnar 提交于
      Commit f56e8a07 "x86/mce: Fix RCU lockdep splats" introduced the
      following build bug:
      
        arch/x86/kernel/cpu/mcheck/mce.c: In function 'mce_log':
        arch/x86/kernel/cpu/mcheck/mce.c:166: error: 'mce_read_mutex' undeclared (first use in this function)
        arch/x86/kernel/cpu/mcheck/mce.c:166: error: (Each undeclared identifier is reported only once
        arch/x86/kernel/cpu/mcheck/mce.c:166: error: for each function it appears in.)
      
      Move the in-the-middle-of-file lock variable up to the variable
      definition section, the top of the .c file.
      
      Cc: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
      Cc: "H. Peter Anvin" <hpa@zytor.com>
      Cc: x86@kernel.org
      Cc: laijs@cn.fujitsu.com
      Cc: dipankar@in.ibm.com
      Cc: mathieu.desnoyers@polymtl.ca
      Cc: josh@joshtriplett.org
      Cc: dvhltc@us.ibm.com
      Cc: niv@us.ibm.com
      Cc: peterz@infradead.org
      Cc: rostedt@goodmis.org
      Cc: Valdis.Kletnieks@vt.edu
      Cc: dhowells@redhat.com
      LKML-Reference: <1267830207-9474-3-git-send-email-paulmck@linux.vnet.ibm.com>
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      2aa2b50d
    • C
      Input: i8042 - add ALDI/MEDION netbook E1222 to qurik reset table · 31968ecf
      Christoph Fritz 提交于
      ALDI/MEDION netbook E1222 needs to be in the reset quirk list for
      its touchpad's proper function.
      Reported-by: NMichael Fischer <mifi@gmx.de>
      Signed-off-by: NChristoph Fritz <chf.fritz@googlemail.com>
      Cc: stable@kernel.org
      Signed-off-by: NDmitry Torokhov <dtor@mail.ru>
      31968ecf