1. 25 12月, 2016 2 次提交
  2. 21 12月, 2016 1 次提交
    • H
      parisc: Optimize timer interrupt function · 160494d3
      Helge Deller 提交于
      Restructure the timer interrupt function to better cope with missed timer irqs.
      Optimize the calculation when the next interrupt should happen and skip irqs if
      they would happen too shortly after exit of the irq function.
      
      The update_process_times() call is done anyway at every timer irq, so we can
      safely drop the prof_counter and prof_multiplier variables from the per_cpu
      structure.
      Signed-off-by: NHelge Deller <deller@gmx.de>
      160494d3
  3. 25 11月, 2016 1 次提交
  4. 26 9月, 2016 1 次提交
    • H
      parisc: Fix self-detected CPU stall warnings on Mako machines · 92420bd0
      Helge Deller 提交于
      The config option HAVE_UNSTABLE_SCHED_CLOCK is set automatically when compiling
      for SMP. There is no need to clear the stable-clock flag via
      clear_sched_clock_stable() when starting secondary CPUs, and even worse,
      clearing it triggers wrong self-detected CPU stall warnings on 64bit Mako
      machines.
      Signed-off-by: NHelge Deller <deller@gmx.de>
      Cc: stable@vger.kernel.org # 4.7+
      92420bd0
  5. 20 8月, 2016 1 次提交
    • H
      parisc: Fix automatic selection of cr16 clocksource · ae141830
      Helge Deller 提交于
      Commit 54b66800 (parisc: Add native high-resolution sched_clock()
      implementation) added support to use the CPU-internal cr16 counters as reliable
      clocksource with the help of HAVE_UNSTABLE_SCHED_CLOCK.
      
      Sadly the commit missed to remove the hack which prevented cr16 to become the
      default clocksource even on SMP systems.
      Signed-off-by: NHelge Deller <deller@gmx.de>
      Cc: stable@vger.kernel.org # 4.7+
      ae141830
  6. 05 6月, 2016 1 次提交
  7. 04 6月, 2016 1 次提交
  8. 23 5月, 2016 1 次提交
    • H
      parisc: Add native high-resolution sched_clock() implementation · 54b66800
      Helge Deller 提交于
      Add a native implementation for the sched_clock() function which utilizes the
      processor-internal cycle counter (Control Register 16) as high-resolution time
      source.
      
      With this patch we now get much more fine-grained resolutions in various
      in-kernel time measurements (e.g. when viewing the function tracing logs), and
      probably a more accurate scheduling on SMP systems.
      
      There are a few specific implementation details in this patch:
      
      1. On a 32bit kernel we emulate the higher 32bits of the required 64-bit
      resolution of sched_clock() by increasing a per-cpu counter at every
      wrap-around of the 32bit cycle counter.
      
      2. In a SMP system, the cycle counters of the various CPUs are not syncronized
      (similiar to the TSC in a x86_64 system). To cope with this we define
      HAVE_UNSTABLE_SCHED_CLOCK and let the upper layers do the adjustment work.
      
      3. Since we need HAVE_UNSTABLE_SCHED_CLOCK, we need to provide a cmpxchg64()
      function even on a 32-bit kernel.
      
      4. A 64-bit SMP kernel which is started on a UP system will mark the
      sched_clock() implementation as "stable", which means that we don't expect any
      jumps in the returned counter. This is true because we then run only on one
      CPU.
      Signed-off-by: NHelge Deller <deller@gmx.de>
      54b66800
  9. 08 9月, 2015 2 次提交
  10. 11 5月, 2012 1 次提交
    • R
      parisc: move definition of PAGE0 to asm/page.h · 4a8a0788
      Rolf Eike Beer 提交于
      This was defined in asm/pdc.h which needs to include asm/page.h for
      __PAGE_OFFSET. This leads to an include loop so that page.h eventually will
      include pdc.h again. While this is no problem because of header guards, it is
      a problem because some symbols may be undefined. Such an error is this:
      
      In file included from include/linux/bitops.h:35:0,
                       from include/asm-generic/getorder.h:7,
                       from arch/parisc/include/asm/page.h:162,
                       from arch/parisc/include/asm/pdc.h:346,
                       from arch/parisc/include/asm/processor.h:16,
                       from arch/parisc/include/asm/spinlock.h:6,
                       from arch/parisc/include/asm/atomic.h:20,
                       from include/linux/atomic.h:4,
                       from include/linux/sysfs.h:20,
                       from include/linux/kobject.h:21,
                       from include/linux/device.h:17,
                       from include/linux/eisa.h:5,
                       from arch/parisc/kernel/pci.c:11:
      arch/parisc/include/asm/bitops.h: In function ‘set_bit’:
      arch/parisc/include/asm/bitops.h:82:2: error: implicit declaration of function ‘_atomic_spin_lock_irqsave’ [-Werror=implicit-function-declaration]
      arch/parisc/include/asm/bitops.h:84:2: error: implicit declaration of function ‘_atomic_spin_unlock_irqrestore’ [-Werror=implicit-function-declaration]
      Signed-off-by: NRolf Eike Beer <eike-kernel@sf-tec.de>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      4a8a0788
  11. 22 11月, 2011 1 次提交
  12. 31 1月, 2011 1 次提交
  13. 07 3月, 2010 1 次提交
  14. 03 7月, 2009 2 次提交
    • G
      parisc: fix "delay!" timer handling · 84be31be
      Grant Grundler 提交于
      Rewrote timer_interrupt() to properly handle the "delayed!" case.
      
      If we used floating point math to compute the number of ticks that had
      elapsed since the last timer interrupt, it could take up to 12K cycles
      (emperical!) to handle the interrupt. Existing code assumed it would
      never take more than 8k cycles. We end up programming Interval Timer
      to a value less than "current" cycle counter.  Thus have to wait until
      Interval Timer "wrapped" and would then get the "delayed!" printk that
      I moved below.
      
      Since we don't really know what the upper limit is, I prefer to read
      CR16 again after we've programmed it to make sure we won't have to
      wait for CR16 to wrap.
      
      Further, the printk was between reading CR16 (cycle couner) and writing CR16
      (the interval timer). This would cause us to continue to set the interval
      timer to a value that was "behind" the cycle counter. Rinse and repeat.
      So no printk's between reading CR16 and setting next interval timer.
      
      Tested on A500 (550 Mhz PA8600).
      Signed-off-by: NGrant Grundler <grundler@parisc-linux.org>
      Tested-by: NKyle McMartin <kyle@mcmartin.ca>
      Signed-off-by: NKyle McMartin <kyle@mcmartin.ca>
      
      ----
      Kyle, Helge, and other parisc's,
      Please test on 32-bit before committing.
      I think I have it right but recognize I might not.
      
      TODO: I wanted to use "do_div()" in order to get both remainder
      and value back with one division op. That should help with the
      latency alot but can be applied seperately from this patch.
      
      thanks,
      grant
      84be31be
    • C
      parisc: add parameter to read_cr16() · ebc30a0f
      Coly Li 提交于
      This patch modifies parameter of au1x_counter1_read() from 'void' to 'struct
      clocksource *cs', which fixes compile warning for incompatible parameter type.
      Signed-off-by: NColy Li <coly.li@suse.de>
      Signed-off-by: NHelge Deller <deller@gmx.de>
      Cc: Ingo Molnar <mingo@elte.hu>
      Signed-off-by: NKyle McMartin <kyle@mcmartin.ca>
      ebc30a0f
  15. 02 4月, 2009 1 次提交
  16. 01 4月, 2009 2 次提交
  17. 31 3月, 2009 1 次提交
  18. 06 1月, 2009 1 次提交
  19. 11 10月, 2008 1 次提交
  20. 18 10月, 2007 1 次提交
  21. 23 5月, 2007 1 次提交
  22. 27 2月, 2007 4 次提交
  23. 17 2月, 2007 3 次提交
  24. 12 2月, 2007 1 次提交
  25. 07 10月, 2006 3 次提交
  26. 05 10月, 2006 1 次提交
  27. 04 10月, 2006 3 次提交