]> Git Repo - linux.git/commitdiff
Merge git://git.kernel.org/pub/scm/linux/kernel/git/cmetcalf/linux-tile
authorLinus Torvalds <[email protected]>
Sun, 18 Dec 2016 01:05:49 +0000 (17:05 -0800)
committerLinus Torvalds <[email protected]>
Sun, 18 Dec 2016 01:05:49 +0000 (17:05 -0800)
Pull arch/tile updates from Chris Metcalf:
 "Another grab-bag of miscellaneous changes"

* git://git.kernel.org/pub/scm/linux/kernel/git/cmetcalf/linux-tile:
  tile: use __ro_after_init instead of tile-specific __write_once
  tile: migrate exception table users off module.h and onto extable.h
  tile: remove #pragma unroll from finv_buffer_remote()
  tile-module: Rename jump labels in module_alloc()
  tile-module: Use kmalloc_array() in module_alloc()
  tile/pci_gx: fix spelling mistake: "delievered" -> "delivered"

1  2 
arch/tile/kernel/time.c

diff --combined arch/tile/kernel/time.c
index ea960d6609177faa86780e6164f26e4d3ef51ac2,f7db722bc3877727e6aadff5bbc8f92f547db2fc..c9357012b1c892a838512d2df063e25e4d66930d
@@@ -37,7 -37,7 +37,7 @@@
   */
  
  /* How many cycles per second we are running at. */
- static cycles_t cycles_per_sec __write_once;
+ static cycles_t cycles_per_sec __ro_after_init;
  
  cycles_t get_clock_rate(void)
  {
@@@ -68,7 -68,7 +68,7 @@@ EXPORT_SYMBOL(get_cycles)
   */
  #define SCHED_CLOCK_SHIFT 10
  
- static unsigned long sched_clock_mult __write_once;
+ static unsigned long sched_clock_mult __ro_after_init;
  
  static cycles_t clocksource_get_cycles(struct clocksource *cs)
  {
@@@ -218,8 -218,8 +218,8 @@@ void do_timer_interrupt(struct pt_regs 
   */
  unsigned long long sched_clock(void)
  {
 -      return clocksource_cyc2ns(get_cycles(),
 -                                sched_clock_mult, SCHED_CLOCK_SHIFT);
 +      return mult_frac(get_cycles(),
 +                       sched_clock_mult, 1ULL << SCHED_CLOCK_SHIFT);
  }
  
  int setup_profiling_timer(unsigned int multiplier)
This page took 0.068777 seconds and 4 git commands to generate.