diff --git a/kernel/timer.c b/kernel/timer.c index 43ca993..cb4db47 100644 --- a/kernel/timer.c +++ b/kernel/timer.c @@ -41,6 +41,7 @@ #include #include +#include #include #include #include @@ -54,6 +55,12 @@ u64 jiffies_64 __cacheline_aligned_in_smp = INITIAL_JIFFIES; EXPORT_SYMBOL(jiffies_64); +#if defined(__LITTLE_ENDIAN) || (BITS_PER_LONG >= 64) +asm("jiffies = jiffies_64"); +#else +asm("jiffies = jiffies_64 + 4"); +#endif + /* * per-CPU timer vector definitions: */