1. 10 5月, 2010 6 次提交
    • J
      clocksource: Add clocksource_register_hz/khz interface · d7e81c26
      John Stultz 提交于
      How to pick good mult/shift pairs has always been difficult to
      describe to folks writing clocksource drivers, since it requires
      careful tradeoffs in adjustment accuracy vs overflow limits.
      
      Now, with the clocks_calc_mult_shift function, its much
      easier. However, not many clocksources have converted to using that
      function, and there is still the issue of the max interval length
      assumption being made by each clocksource driver independently.
      
      So this patch simplifies the registration process by having
      clocksources be registered with a hz/khz value and the registration
      function taking care of setting mult/shift.
      
      This should take most of the confusion out of writing a clocksource
      driver.
      
      Additionally it also keeps the shift size tradeoff (more accuracy vs
      longer possible nohz times) centralized so the timekeeping core can
      keep track of the assumptions being made.
      
      [ tglx: Coding style and comments fixed ]
      Signed-off-by: NJohn Stultz <johnstul@us.ibm.com>
      LKML-Reference: <1273280858-30143-1-git-send-email-johnstul@us.ibm.com>
      Signed-off-by: NThomas Gleixner <tglx@linutronix.de>
      d7e81c26
    • S
      posix-cpu-timers: Optimize run_posix_cpu_timers() · 29f87b79
      Stanislaw Gruszka 提交于
      We can optimize and simplify things taking into account signal->cputimer
      is always running when we have configured any process wide cpu timer.
      
      In check_process_timers(), we don't have to check if new updated value of
      signal->cputime_expires is smaller, since we maintain new first expiration
      time ({prof,virt,sched}_expires) in code flow and all other writes to
      expiration cache are protected by sighand->siglock .
      Signed-off-by: NStanislaw Gruszka <sgruszka@redhat.com>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Cc: Ingo Molnar <mingo@elte.hu>
      Cc: Oleg Nesterov <oleg@redhat.com>
      Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
      Cc: Hidetoshi Seto <seto.hidetoshi@jp.fujitsu.com>
      Cc: Balbir Singh <balbir@in.ibm.com>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NThomas Gleixner <tglx@linutronix.de>
      29f87b79
    • T
      Merge branch 'linus' into timers/core · dbb6be6d
      Thomas Gleixner 提交于
      Reason: Further posix_cpu_timer patches depend on mainline changes
      Signed-off-by: NThomas Gleixner <tglx@linutronix.de>
      dbb6be6d
    • L
      Linux 2.6.34-rc7 · b57f95a3
      Linus Torvalds 提交于
      b57f95a3
    • L
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi-rc-fixes-2.6 · 93cb4631
      Linus Torvalds 提交于
      * git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi-rc-fixes-2.6:
        [SCSI] Retry commands with UNIT_ATTENTION sense codes to fix ext3/ext4 I/O error
        [SCSI] Enable retries for SYNCRONIZE_CACHE commands to fix I/O error
        [SCSI] scsi_debug: virtual_gb ignores sector_size
        [SCSI] libiscsi: regression: fix header digest errors
        [SCSI] fix locking around blk_abort_request()
        [SCSI] advansys: fix narrow board error path
      93cb4631
    • A
      cpuidle: Fix incorrect optimization · 1c6fe036
      Arjan van de Ven 提交于
      commit 672917dc ("cpuidle: menu governor: reduce latency on exit")
      added an optimization, where the analysis on the past idle period moved
      from the end of idle, to the beginning of the new idle.
      
      Unfortunately, this optimization had a bug where it zeroed one key
      variable for new use, that is needed for the analysis.  The fix is
      simple, zero the variable after doing the work from the previous idle.
      
      During the audit of the code that found this issue, another issue was
      also found; the ->measured_us data structure member is never set, a
      local variable is always used instead.
      Signed-off-by: NArjan van de Ven <arjan@linux.intel.com>
      Cc: Corrado Zoccolo <czoccolo@gmail.com>
      Cc: stable@kernel.org
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      1c6fe036
  2. 08 5月, 2010 9 次提交
  3. 07 5月, 2010 25 次提交