Skip to content

Commit ecea8d1

Browse files
KAGA-KOKOLinus Torvalds
authored andcommitted
[PATCH] jiffies_64 cleanup
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>
1 parent 371e8c2 commit ecea8d1

25 files changed

Lines changed: 4 additions & 93 deletions

File tree

‎arch/alpha/kernel/time.c‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,6 @@
5555
#include "proto.h"
5656
#include "irq_impl.h"
5757

58-
u64 jiffies_64 = INITIAL_JIFFIES;
59-
60-
EXPORT_SYMBOL(jiffies_64);
61-
6258
extern unsigned long wall_jiffies; /* kernel/timer.c */
6359

6460
static int set_rtc_mmss(unsigned long);

‎arch/arm/kernel/time.c‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,6 @@
3636
#include <asm/thread_info.h>
3737
#include <asm/mach/time.h>
3838

39-
u64 jiffies_64 = INITIAL_JIFFIES;
40-
41-
EXPORT_SYMBOL(jiffies_64);
42-
4339
/*
4440
* Our system timer.
4541
*/

‎arch/arm26/kernel/time.c‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,6 @@
3434
#include <asm/irq.h>
3535
#include <asm/ioc.h>
3636

37-
u64 jiffies_64 = INITIAL_JIFFIES;
38-
39-
EXPORT_SYMBOL(jiffies_64);
40-
4137
extern unsigned long wall_jiffies;
4238

4339
/* this needs a better home */

‎arch/cris/kernel/time.c‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,6 @@
3232
#include <linux/init.h>
3333
#include <linux/profile.h>
3434

35-
u64 jiffies_64 = INITIAL_JIFFIES;
36-
37-
EXPORT_SYMBOL(jiffies_64);
38-
3935
int have_rtc; /* used to remember if we have an RTC or not */;
4036

4137
#define TICK_SIZE tick

‎arch/frv/kernel/time.c‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,6 @@
3434

3535
extern unsigned long wall_jiffies;
3636

37-
u64 jiffies_64 = INITIAL_JIFFIES;
38-
EXPORT_SYMBOL(jiffies_64);
39-
4037
unsigned long __nongprelbss __clkin_clock_speed_HZ;
4138
unsigned long __nongprelbss __ext_bus_clock_speed_HZ;
4239
unsigned long __nongprelbss __res_bus_clock_speed_HZ;

‎arch/h8300/kernel/time.c‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,6 @@
3232

3333
#define TICK_SIZE (tick_nsec / 1000)
3434

35-
u64 jiffies_64;
36-
37-
EXPORT_SYMBOL(jiffies_64);
38-
3935
/*
4036
* timer_interrupt() needs to keep up the real-time clock,
4137
* as well as call the "do_timer()" routine every clocktick

‎arch/i386/kernel/time.c‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,6 @@ int pit_latch_buggy; /* extern */
7474

7575
#include "do_timer.h"
7676

77-
u64 jiffies_64 = INITIAL_JIFFIES;
78-
79-
EXPORT_SYMBOL(jiffies_64);
80-
8177
unsigned int cpu_khz; /* Detected as we calibrate the TSC */
8278
EXPORT_SYMBOL(cpu_khz);
8379

‎arch/ia64/kernel/time.c‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,6 @@
3232

3333
extern unsigned long wall_jiffies;
3434

35-
u64 jiffies_64 __cacheline_aligned_in_smp = INITIAL_JIFFIES;
36-
37-
EXPORT_SYMBOL(jiffies_64);
38-
3935
#define TIME_KEEPER_ID 0 /* smp_processor_id() of time-keeper */
4036

4137
#ifdef CONFIG_IA64_DEBUG_IRQ

‎arch/m32r/kernel/time.c‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,6 @@ extern void send_IPI_allbutself(int, int);
3939
extern void smp_local_timer_interrupt(struct pt_regs *);
4040
#endif
4141

42-
u64 jiffies_64 = INITIAL_JIFFIES;
43-
44-
EXPORT_SYMBOL(jiffies_64);
45-
4642
extern unsigned long wall_jiffies;
4743
#define TICK_SIZE (tick_nsec / 1000)
4844

‎arch/m68k/kernel/time.c‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,6 @@
2727
#include <linux/timex.h>
2828
#include <linux/profile.h>
2929

30-
u64 jiffies_64 = INITIAL_JIFFIES;
31-
32-
EXPORT_SYMBOL(jiffies_64);
33-
3430
static inline int set_rtc_mmss(unsigned long nowtime)
3531
{
3632
if (mach_set_clock_mmss)

0 commit comments

Comments
 (0)