summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndi Kleen <ak@muc.de>2002-06-17 20:27:29 -0700
committerLinus Torvalds <torvalds@home.transmeta.com>2002-06-17 20:27:29 -0700
commit86403107ccc75a0562ecdf21b3adc07285b83daa (patch)
tree6fb69a9af471134084021c5f5db483a779a7a996
parentb068ec41ff5c343330ca11a25347918accb66c2a (diff)
[PATCH] Move jiffies_64 down into architectures
x86-64 needs an own special declaration of jiffies_64. prepare for this by moving the jiffies_64 declaration from kernel/timer.c down into each architecture.
-rw-r--r--arch/alpha/kernel/time.c2
-rw-r--r--arch/arm/kernel/time.c2
-rw-r--r--arch/cris/kernel/time.c2
-rw-r--r--arch/i386/kernel/time.c1
-rw-r--r--arch/ia64/kernel/time.c2
-rw-r--r--arch/m68k/kernel/time.c1
-rw-r--r--arch/mips/kernel/time.c2
-rw-r--r--arch/mips64/kernel/syscall.c2
-rw-r--r--arch/parisc/kernel/time.c2
-rw-r--r--arch/ppc/kernel/time.c3
-rw-r--r--arch/ppc64/kernel/time.c2
-rw-r--r--arch/s390/kernel/time.c2
-rw-r--r--arch/s390x/kernel/time.c2
-rw-r--r--arch/sh/kernel/time.c2
-rw-r--r--arch/sparc/kernel/time.c2
-rw-r--r--arch/sparc64/kernel/time.c2
-rw-r--r--kernel/timer.c4
17 files changed, 33 insertions, 2 deletions
diff --git a/arch/alpha/kernel/time.c b/arch/alpha/kernel/time.c
index 0be250e543e8..93a569828d70 100644
--- a/arch/alpha/kernel/time.c
+++ b/arch/alpha/kernel/time.c
@@ -48,6 +48,8 @@
#include "proto.h"
#include "irq_impl.h"
+u64 jiffies_64;
+
extern rwlock_t xtime_lock;
extern unsigned long wall_jiffies; /* kernel/timer.c */
diff --git a/arch/arm/kernel/time.c b/arch/arm/kernel/time.c
index 7c7e03c5b6e9..cd00aacc74a9 100644
--- a/arch/arm/kernel/time.c
+++ b/arch/arm/kernel/time.c
@@ -32,6 +32,8 @@
#include <asm/irq.h>
#include <asm/leds.h>
+u64 jiffies_64;
+
extern rwlock_t xtime_lock;
extern unsigned long wall_jiffies;
diff --git a/arch/cris/kernel/time.c b/arch/cris/kernel/time.c
index 537040f95a6d..1ee0bbfeab7e 100644
--- a/arch/cris/kernel/time.c
+++ b/arch/cris/kernel/time.c
@@ -44,6 +44,8 @@
#include <asm/svinto.h>
+u64 jiffies_64;
+
static int have_rtc; /* used to remember if we have an RTC or not */
/* define this if you need to use print_timestamp */
diff --git a/arch/i386/kernel/time.c b/arch/i386/kernel/time.c
index 1e1eb0d3a5f7..f56251513581 100644
--- a/arch/i386/kernel/time.c
+++ b/arch/i386/kernel/time.c
@@ -65,6 +65,7 @@
*/
#include <linux/irq.h>
+u64 jiffies_64;
unsigned long cpu_khz; /* Detected as we calibrate the TSC */
diff --git a/arch/ia64/kernel/time.c b/arch/ia64/kernel/time.c
index dc6500b7a167..1c348cce1fdd 100644
--- a/arch/ia64/kernel/time.c
+++ b/arch/ia64/kernel/time.c
@@ -27,6 +27,8 @@ extern rwlock_t xtime_lock;
extern unsigned long wall_jiffies;
extern unsigned long last_time_offset;
+u64 jiffies_64;
+
#ifdef CONFIG_IA64_DEBUG_IRQ
unsigned long last_cli_ip;
diff --git a/arch/m68k/kernel/time.c b/arch/m68k/kernel/time.c
index a845040b339a..54b8f68cf7e0 100644
--- a/arch/m68k/kernel/time.c
+++ b/arch/m68k/kernel/time.c
@@ -24,6 +24,7 @@
#include <linux/timex.h>
+u64 jiffies_64;
static inline int set_rtc_mmss(unsigned long nowtime)
{
diff --git a/arch/mips/kernel/time.c b/arch/mips/kernel/time.c
index e548314773de..6ea186b42155 100644
--- a/arch/mips/kernel/time.c
+++ b/arch/mips/kernel/time.c
@@ -32,6 +32,8 @@
#define USECS_PER_JIFFY (1000000/HZ)
#define USECS_PER_JIFFY_FRAC ((1000000ULL << 32) / HZ & 0xffffffff)
+u64 jiffies_64;
+
/*
* forward reference
*/
diff --git a/arch/mips64/kernel/syscall.c b/arch/mips64/kernel/syscall.c
index 6daab491059b..053051c63a25 100644
--- a/arch/mips64/kernel/syscall.c
+++ b/arch/mips64/kernel/syscall.c
@@ -32,6 +32,8 @@
#include <asm/sysmips.h>
#include <asm/uaccess.h>
+u64 jiffies_64;
+
extern asmlinkage void syscall_trace(void);
asmlinkage int sys_pipe(abi64_no_regargs, struct pt_regs regs)
diff --git a/arch/parisc/kernel/time.c b/arch/parisc/kernel/time.c
index 7b3de0e0ada3..e028e6f3dbe2 100644
--- a/arch/parisc/kernel/time.c
+++ b/arch/parisc/kernel/time.c
@@ -30,6 +30,8 @@
#include <linux/timex.h>
+u64 jiffies_64;
+
extern rwlock_t xtime_lock;
static int timer_value;
diff --git a/arch/ppc/kernel/time.c b/arch/ppc/kernel/time.c
index 260345226022..88a4d63ffea0 100644
--- a/arch/ppc/kernel/time.c
+++ b/arch/ppc/kernel/time.c
@@ -70,6 +70,9 @@
#include <asm/time.h>
+/* XXX false sharing with below? */
+u64 jiffies_64;
+
unsigned long disarm_decr[NR_CPUS];
extern int do_sys_settimeofday(struct timeval *tv, struct timezone *tz);
diff --git a/arch/ppc64/kernel/time.c b/arch/ppc64/kernel/time.c
index d00224a05633..9cd390d65342 100644
--- a/arch/ppc64/kernel/time.c
+++ b/arch/ppc64/kernel/time.c
@@ -64,6 +64,8 @@
void smp_local_timer_interrupt(struct pt_regs *);
+u64 jiffies_64;
+
/* keep track of when we need to update the rtc */
time_t last_rtc_update;
extern rwlock_t xtime_lock;
diff --git a/arch/s390/kernel/time.c b/arch/s390/kernel/time.c
index 2a135d999830..f09059ee63bd 100644
--- a/arch/s390/kernel/time.c
+++ b/arch/s390/kernel/time.c
@@ -39,6 +39,8 @@
#define TICK_SIZE tick
+u64 jiffies_64;
+
static ext_int_info_t ext_int_info_timer;
static uint64_t init_timer_cc;
diff --git a/arch/s390x/kernel/time.c b/arch/s390x/kernel/time.c
index e12e41e2eaef..b81dcb9683d7 100644
--- a/arch/s390x/kernel/time.c
+++ b/arch/s390x/kernel/time.c
@@ -39,6 +39,8 @@
#define TICK_SIZE tick
+u64 jiffies_64;
+
static ext_int_info_t ext_int_info_timer;
static uint64_t init_timer_cc;
diff --git a/arch/sh/kernel/time.c b/arch/sh/kernel/time.c
index 62af96d4fd48..e51e0eb001d6 100644
--- a/arch/sh/kernel/time.c
+++ b/arch/sh/kernel/time.c
@@ -70,6 +70,8 @@
#endif /* CONFIG_CPU_SUBTYPE_ST40STB1 */
#endif /* __sh3__ or __SH4__ */
+u64 jiffies_64;
+
extern rwlock_t xtime_lock;
extern unsigned long wall_jiffies;
#define TICK_SIZE tick
diff --git a/arch/sparc/kernel/time.c b/arch/sparc/kernel/time.c
index 6e7935ab7c56..90d3e8528358 100644
--- a/arch/sparc/kernel/time.c
+++ b/arch/sparc/kernel/time.c
@@ -43,6 +43,8 @@
extern rwlock_t xtime_lock;
+u64 jiffies_64;
+
enum sparc_clock_type sp_clock_typ;
spinlock_t mostek_lock = SPIN_LOCK_UNLOCKED;
unsigned long mstk48t02_regs = 0UL;
diff --git a/arch/sparc64/kernel/time.c b/arch/sparc64/kernel/time.c
index 852c96d62319..47c794e99f4b 100644
--- a/arch/sparc64/kernel/time.c
+++ b/arch/sparc64/kernel/time.c
@@ -44,6 +44,8 @@ unsigned long mstk48t02_regs = 0UL;
unsigned long ds1287_regs = 0UL;
#endif
+u64 jiffies_64;
+
static unsigned long mstk48t08_regs = 0UL;
static unsigned long mstk48t59_regs = 0UL;
diff --git a/kernel/timer.c b/kernel/timer.c
index 0b7efa84970b..c6d6d12e04d4 100644
--- a/kernel/timer.c
+++ b/kernel/timer.c
@@ -69,11 +69,11 @@ unsigned long event;
extern int do_setitimer(int, struct itimerval *, struct itimerval *);
/*
- * The 64-bit value is not volatile - you MUST NOT read it
+ * The 64-bit jiffies value is not atomic - you MUST NOT read it
* without holding read_lock_irq(&xtime_lock).
* jiffies is defined in the linker script...
*/
-u64 jiffies_64;
+
unsigned int * prof_buffer;
unsigned long prof_len;