|
@@ -25,6 +25,7 @@
|
|
#include <linux/module.h>
|
|
#include <linux/module.h>
|
|
|
|
|
|
#include <asm/bootinfo.h>
|
|
#include <asm/bootinfo.h>
|
|
|
|
+#include <asm/cache.h>
|
|
#include <asm/compiler.h>
|
|
#include <asm/compiler.h>
|
|
#include <asm/cpu.h>
|
|
#include <asm/cpu.h>
|
|
#include <asm/cpu-features.h>
|
|
#include <asm/cpu-features.h>
|
|
@@ -76,7 +77,7 @@ int (*rtc_set_mmss)(unsigned long);
|
|
static unsigned int sll32_usecs_per_cycle;
|
|
static unsigned int sll32_usecs_per_cycle;
|
|
|
|
|
|
/* how many counter cycles in a jiffy */
|
|
/* how many counter cycles in a jiffy */
|
|
-static unsigned long cycles_per_jiffy;
|
|
|
|
|
|
+static unsigned long cycles_per_jiffy __read_mostly;
|
|
|
|
|
|
/* Cycle counter value at the previous timer interrupt.. */
|
|
/* Cycle counter value at the previous timer interrupt.. */
|
|
static unsigned int timerhi, timerlo;
|
|
static unsigned int timerhi, timerlo;
|
|
@@ -98,7 +99,10 @@ static unsigned int null_hpt_read(void)
|
|
return 0;
|
|
return 0;
|
|
}
|
|
}
|
|
|
|
|
|
-static void null_hpt_init(unsigned int count) { /* nothing */ }
|
|
|
|
|
|
+static void null_hpt_init(unsigned int count)
|
|
|
|
+{
|
|
|
|
+ /* nothing */
|
|
|
|
+}
|
|
|
|
|
|
|
|
|
|
/*
|
|
/*
|
|
@@ -224,7 +228,6 @@ int do_settimeofday(struct timespec *tv)
|
|
set_normalized_timespec(&wall_to_monotonic, wtm_sec, wtm_nsec);
|
|
set_normalized_timespec(&wall_to_monotonic, wtm_sec, wtm_nsec);
|
|
|
|
|
|
ntp_clear();
|
|
ntp_clear();
|
|
-
|
|
|
|
write_sequnlock_irq(&xtime_lock);
|
|
write_sequnlock_irq(&xtime_lock);
|
|
clock_was_set();
|
|
clock_was_set();
|
|
return 0;
|
|
return 0;
|