Skip to content

Commit

Permalink
[PATCH] jiffies_64 cleanup
Browse files Browse the repository at this point in the history
Define jiffies_64 in kernel/timer.c rather than having 24 duplicated
defines in each architecture.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Thomas Gleixner authored and Linus Torvalds committed Oct 31, 2005
1 parent 371e8c2 commit ecea8d1
Show file tree
Hide file tree
Showing 25 changed files with 4 additions and 93 deletions.
4 changes: 0 additions & 4 deletions arch/alpha/kernel/time.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,6 @@
#include "proto.h"
#include "irq_impl.h"

u64 jiffies_64 = INITIAL_JIFFIES;

EXPORT_SYMBOL(jiffies_64);

extern unsigned long wall_jiffies; /* kernel/timer.c */

static int set_rtc_mmss(unsigned long);
Expand Down
4 changes: 0 additions & 4 deletions arch/arm/kernel/time.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,6 @@
#include <asm/thread_info.h>
#include <asm/mach/time.h>

u64 jiffies_64 = INITIAL_JIFFIES;

EXPORT_SYMBOL(jiffies_64);

/*
* Our system timer.
*/
Expand Down
4 changes: 0 additions & 4 deletions arch/arm26/kernel/time.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,6 @@
#include <asm/irq.h>
#include <asm/ioc.h>

u64 jiffies_64 = INITIAL_JIFFIES;

EXPORT_SYMBOL(jiffies_64);

extern unsigned long wall_jiffies;

/* this needs a better home */
Expand Down
4 changes: 0 additions & 4 deletions arch/cris/kernel/time.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,6 @@
#include <linux/init.h>
#include <linux/profile.h>

u64 jiffies_64 = INITIAL_JIFFIES;

EXPORT_SYMBOL(jiffies_64);

int have_rtc; /* used to remember if we have an RTC or not */;

#define TICK_SIZE tick
Expand Down
3 changes: 0 additions & 3 deletions arch/frv/kernel/time.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,6 @@

extern unsigned long wall_jiffies;

u64 jiffies_64 = INITIAL_JIFFIES;
EXPORT_SYMBOL(jiffies_64);

unsigned long __nongprelbss __clkin_clock_speed_HZ;
unsigned long __nongprelbss __ext_bus_clock_speed_HZ;
unsigned long __nongprelbss __res_bus_clock_speed_HZ;
Expand Down
4 changes: 0 additions & 4 deletions arch/h8300/kernel/time.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,6 @@

#define TICK_SIZE (tick_nsec / 1000)

u64 jiffies_64;

EXPORT_SYMBOL(jiffies_64);

/*
* timer_interrupt() needs to keep up the real-time clock,
* as well as call the "do_timer()" routine every clocktick
Expand Down
4 changes: 0 additions & 4 deletions arch/i386/kernel/time.c
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,6 @@ int pit_latch_buggy; /* extern */

#include "do_timer.h"

u64 jiffies_64 = INITIAL_JIFFIES;

EXPORT_SYMBOL(jiffies_64);

unsigned int cpu_khz; /* Detected as we calibrate the TSC */
EXPORT_SYMBOL(cpu_khz);

Expand Down
4 changes: 0 additions & 4 deletions arch/ia64/kernel/time.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,6 @@

extern unsigned long wall_jiffies;

u64 jiffies_64 __cacheline_aligned_in_smp = INITIAL_JIFFIES;

EXPORT_SYMBOL(jiffies_64);

#define TIME_KEEPER_ID 0 /* smp_processor_id() of time-keeper */

#ifdef CONFIG_IA64_DEBUG_IRQ
Expand Down
4 changes: 0 additions & 4 deletions arch/m32r/kernel/time.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,6 @@ extern void send_IPI_allbutself(int, int);
extern void smp_local_timer_interrupt(struct pt_regs *);
#endif

u64 jiffies_64 = INITIAL_JIFFIES;

EXPORT_SYMBOL(jiffies_64);

extern unsigned long wall_jiffies;
#define TICK_SIZE (tick_nsec / 1000)

Expand Down
4 changes: 0 additions & 4 deletions arch/m68k/kernel/time.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,6 @@
#include <linux/timex.h>
#include <linux/profile.h>

u64 jiffies_64 = INITIAL_JIFFIES;

EXPORT_SYMBOL(jiffies_64);

static inline int set_rtc_mmss(unsigned long nowtime)
{
if (mach_set_clock_mmss)
Expand Down
4 changes: 0 additions & 4 deletions arch/m68knommu/kernel/time.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,6 @@

#define TICK_SIZE (tick_nsec / 1000)

u64 jiffies_64 = INITIAL_JIFFIES;

EXPORT_SYMBOL(jiffies_64);

extern unsigned long wall_jiffies;


Expand Down
4 changes: 0 additions & 4 deletions arch/mips/kernel/time.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,6 @@

#define TICK_SIZE (tick_nsec / 1000)

u64 jiffies_64 = INITIAL_JIFFIES;

EXPORT_SYMBOL(jiffies_64);

/*
* forward reference
*/
Expand Down
4 changes: 0 additions & 4 deletions arch/parisc/kernel/time.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,6 @@

#include <linux/timex.h>

u64 jiffies_64 = INITIAL_JIFFIES;

EXPORT_SYMBOL(jiffies_64);

/* xtime and wall_jiffies keep wall-clock time */
extern unsigned long wall_jiffies;

Expand Down
5 changes: 0 additions & 5 deletions arch/ppc/kernel/time.c
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,6 @@

#include <asm/time.h>

/* XXX false sharing with below? */
u64 jiffies_64 = INITIAL_JIFFIES;

EXPORT_SYMBOL(jiffies_64);

unsigned long disarm_decr[NR_CPUS];

extern struct timezone sys_tz;
Expand Down
4 changes: 0 additions & 4 deletions arch/ppc64/kernel/time.c
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,6 @@
#include <asm/systemcfg.h>
#include <asm/firmware.h>

u64 jiffies_64 __cacheline_aligned_in_smp = INITIAL_JIFFIES;

EXPORT_SYMBOL(jiffies_64);

/* keep track of when we need to update the rtc */
time_t last_rtc_update;
extern int piranha_simulator;
Expand Down
4 changes: 0 additions & 4 deletions arch/s390/kernel/time.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,6 @@

#define TICK_SIZE tick

u64 jiffies_64 = INITIAL_JIFFIES;

EXPORT_SYMBOL(jiffies_64);

static ext_int_info_t ext_int_info_cc;
static u64 init_timer_cc;
static u64 jiffies_timer_cc;
Expand Down
4 changes: 0 additions & 4 deletions arch/sh/kernel/time.c
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,6 @@ extern unsigned long wall_jiffies;
#define TICK_SIZE (tick_nsec / 1000)
DEFINE_SPINLOCK(tmu0_lock);

u64 jiffies_64 = INITIAL_JIFFIES;

EXPORT_SYMBOL(jiffies_64);

/* XXX: Can we initialize this in a routine somewhere? Dreamcast doesn't want
* these routines anywhere... */
#ifdef CONFIG_SH_RTC
Expand Down
2 changes: 0 additions & 2 deletions arch/sh64/kernel/time.c
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,6 @@

extern unsigned long wall_jiffies;

u64 jiffies_64 = INITIAL_JIFFIES;

static unsigned long tmu_base, rtc_base;
unsigned long cprc_base;

Expand Down
4 changes: 0 additions & 4 deletions arch/sparc/kernel/time.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,6 @@

extern unsigned long wall_jiffies;

u64 jiffies_64 = INITIAL_JIFFIES;

EXPORT_SYMBOL(jiffies_64);

DEFINE_SPINLOCK(rtc_lock);
enum sparc_clock_type sp_clock_typ;
DEFINE_SPINLOCK(mostek_lock);
Expand Down
4 changes: 0 additions & 4 deletions arch/sparc64/kernel/time.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,6 @@ unsigned long ds1287_regs = 0UL;

extern unsigned long wall_jiffies;

u64 jiffies_64 = INITIAL_JIFFIES;

EXPORT_SYMBOL(jiffies_64);

static void __iomem *mstk48t08_regs;
static void __iomem *mstk48t59_regs;

Expand Down
4 changes: 0 additions & 4 deletions arch/um/kernel/time_kern.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,6 @@
#include "mode.h"
#include "os.h"

u64 jiffies_64 = INITIAL_JIFFIES;

EXPORT_SYMBOL(jiffies_64);

int hz(void)
{
return(HZ);
Expand Down
4 changes: 0 additions & 4 deletions arch/v850/kernel/time.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,6 @@

#include "mach.h"

u64 jiffies_64 = INITIAL_JIFFIES;

EXPORT_SYMBOL(jiffies_64);

#define TICK_SIZE (tick_nsec / 1000)

/*
Expand Down
4 changes: 0 additions & 4 deletions arch/x86_64/kernel/time.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,6 @@
#include <asm/apic.h>
#endif

u64 jiffies_64 = INITIAL_JIFFIES;

EXPORT_SYMBOL(jiffies_64);

#ifdef CONFIG_CPU_FREQ
static void cpufreq_delayed_get(void);
#endif
Expand Down
3 changes: 0 additions & 3 deletions arch/xtensa/kernel/time.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,6 @@

extern volatile unsigned long wall_jiffies;

u64 jiffies_64 = INITIAL_JIFFIES;
EXPORT_SYMBOL(jiffies_64);

spinlock_t rtc_lock = SPIN_LOCK_UNLOCKED;
EXPORT_SYMBOL(rtc_lock);

Expand Down
4 changes: 4 additions & 0 deletions kernel/timer.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ static void time_interpolator_update(long delta_nsec);
#define time_interpolator_update(x)
#endif

u64 jiffies_64 __cacheline_aligned_in_smp = INITIAL_JIFFIES;

EXPORT_SYMBOL(jiffies_64);

/*
* per-CPU timer vector definitions:
*/
Expand Down

0 comments on commit ecea8d1

Please sign in to comment.