Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 3997
b: refs/heads/master
c: 306e440
h: refs/heads/master
i:
  3995: 0d0530a
v: v3
  • Loading branch information
Ingo Molnar authored and Linus Torvalds committed Jun 30, 2005
1 parent 055ab2e commit d472020
Show file tree
Hide file tree
Showing 16 changed files with 31 additions and 19 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: bcbda35ca7470bf0123a7ae685899776f67814b2
refs/heads/master: 306e440daf5f40b195afd83d05dee89fa63189e7
2 changes: 1 addition & 1 deletion trunk/arch/i386/kernel/apic.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
#include <asm/desc.h>
#include <asm/arch_hooks.h>
#include <asm/hpet.h>
#include <asm/i8253.h>

#include <mach_apic.h>

Expand Down Expand Up @@ -879,7 +880,6 @@ void __init init_apic_mappings(void)
*/
static unsigned int __devinit get_8254_timer_count(void)
{
extern spinlock_t i8253_lock;
unsigned long flags;

unsigned int count;
Expand Down
5 changes: 2 additions & 3 deletions trunk/arch/i386/kernel/apm.c
Original file line number Diff line number Diff line change
Expand Up @@ -228,10 +228,10 @@
#include <asm/system.h>
#include <asm/uaccess.h>
#include <asm/desc.h>
#include <asm/i8253.h>

#include "io_ports.h"

extern spinlock_t i8253_lock;
extern unsigned long get_cmos_time(void);
extern void machine_real_restart(unsigned char *, int);

Expand Down Expand Up @@ -1168,8 +1168,7 @@ static void get_time_diff(void)
static void reinit_timer(void)
{
#ifdef INIT_TIMER_AFTER_SUSPEND
unsigned long flags;
extern spinlock_t i8253_lock;
unsigned long flags;

spin_lock_irqsave(&i8253_lock, flags);
/* set the clock to 100 Hz */
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/i386/kernel/io_apic.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
#include <asm/smp.h>
#include <asm/desc.h>
#include <asm/timer.h>
#include <asm/i8259.h>

#include <mach_apic.h>

Expand Down Expand Up @@ -1566,7 +1567,6 @@ void print_all_local_APICs (void)

void /*__init*/ print_PIC(void)
{
extern spinlock_t i8259A_lock;
unsigned int v;
unsigned long flags;

Expand Down
5 changes: 4 additions & 1 deletion trunk/arch/i386/kernel/time.c
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@

#include "io_ports.h"

extern spinlock_t i8259A_lock;
#include <asm/i8259.h>

int pit_latch_buggy; /* extern */

#include "do_timer.h"
Expand All @@ -85,6 +86,8 @@ extern unsigned long wall_jiffies;
DEFINE_SPINLOCK(rtc_lock);
EXPORT_SYMBOL(rtc_lock);

#include <asm/i8253.h>

DEFINE_SPINLOCK(i8253_lock);
EXPORT_SYMBOL(i8253_lock);

Expand Down
4 changes: 2 additions & 2 deletions trunk/arch/i386/kernel/timers/timer_cyclone.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
#include <asm/io.h>
#include <asm/pgtable.h>
#include <asm/fixmap.h>
#include "io_ports.h"
#include <asm/i8253.h>

extern spinlock_t i8253_lock;
#include "io_ports.h"

/* Number of usecs that the last interrupt was delayed */
static int delay_at_last_interrupt;
Expand Down
4 changes: 1 addition & 3 deletions trunk/arch/i386/kernel/timers/timer_pit.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,8 @@
#include <asm/smp.h>
#include <asm/io.h>
#include <asm/arch_hooks.h>
#include <asm/i8253.h>

extern spinlock_t i8259A_lock;
extern spinlock_t i8253_lock;
#include "do_timer.h"
#include "io_ports.h"

Expand Down Expand Up @@ -166,7 +165,6 @@ struct init_timer_opts __initdata timer_pit_init = {

void setup_pit_timer(void)
{
extern spinlock_t i8253_lock;
unsigned long flags;

spin_lock_irqsave(&i8253_lock, flags);
Expand Down
3 changes: 1 addition & 2 deletions trunk/arch/i386/kernel/timers/timer_tsc.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
#include "mach_timer.h"

#include <asm/hpet.h>
#include <asm/i8253.h>

#ifdef CONFIG_HPET_TIMER
static unsigned long hpet_usec_quotient;
Expand All @@ -35,8 +36,6 @@ static inline void cpufreq_delayed_get(void);

int tsc_disable __devinitdata = 0;

extern spinlock_t i8253_lock;

static int use_tsc;
/* Number of usecs that the last interrupt was delayed */
static int delay_at_last_interrupt;
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/i386/mach-voyager/voyager_basic.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
#include <linux/irq.h>
#include <asm/tlbflush.h>
#include <asm/arch_hooks.h>
#include <asm/i8253.h>

/*
* Power off function, if any
Expand Down Expand Up @@ -182,7 +183,6 @@ voyager_timer_interrupt(struct pt_regs *regs)
* and swiftly introduce it to something sharp and
* pointy. */
__u16 val;
extern spinlock_t i8253_lock;

spin_lock(&i8253_lock);

Expand Down
1 change: 0 additions & 1 deletion trunk/arch/x86_64/kernel/io_apic.c
Original file line number Diff line number Diff line change
Expand Up @@ -1064,7 +1064,6 @@ void print_all_local_APICs (void)

void __apicdebuginit print_PIC(void)
{
extern spinlock_t i8259A_lock;
unsigned int v;
unsigned long flags;

Expand Down
4 changes: 3 additions & 1 deletion trunk/drivers/ide/legacy/hd.c
Original file line number Diff line number Diff line change
Expand Up @@ -156,11 +156,13 @@ else \


#if (HD_DELAY > 0)

#include <asm/i8253.h>

unsigned long last_req;

unsigned long read_timer(void)
{
extern spinlock_t i8253_lock;
unsigned long t, flags;
int i;

Expand Down
3 changes: 2 additions & 1 deletion trunk/drivers/input/gameport/gameport.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,13 @@ static void gameport_disconnect_port(struct gameport *gameport);

#if defined(__i386__)

#include <asm/i8253.h>

#define DELTA(x,y) ((y)-(x)+((y)<(x)?1193182/HZ:0))
#define GET_TIME(x) do { x = get_time_pit(); } while (0)

static unsigned int get_time_pit(void)
{
extern spinlock_t i8253_lock;
unsigned long flags;
unsigned int count;

Expand Down
4 changes: 3 additions & 1 deletion trunk/drivers/input/joystick/analog.c
Original file line number Diff line number Diff line change
Expand Up @@ -140,12 +140,14 @@ struct analog_port {
*/

#ifdef __i386__

#include <asm/i8253.h>

#define GET_TIME(x) do { if (cpu_has_tsc) rdtscl(x); else x = get_time_pit(); } while (0)
#define DELTA(x,y) (cpu_has_tsc ? ((y) - (x)) : ((x) - (y) + ((x) < (y) ? CLOCK_TICK_RATE / HZ : 0)))
#define TIME_NAME (cpu_has_tsc?"TSC":"PIT")
static unsigned int get_time_pit(void)
{
extern spinlock_t i8253_lock;
unsigned long flags;
unsigned int count;

Expand Down
6 changes: 6 additions & 0 deletions trunk/include/asm-i386/i8253.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#ifndef __ASM_I8253_H__
#define __ASM_I8253_H__

extern spinlock_t i8253_lock;

#endif /* __ASM_I8253_H__ */
1 change: 1 addition & 0 deletions trunk/include/asm-i386/mach-default/do_timer.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/* defines for inline arch setup functions */

#include <asm/apic.h>
#include <asm/i8259.h>

/**
* do_timer_interrupt_hook - hook into timer tick
Expand Down
2 changes: 2 additions & 0 deletions trunk/include/asm-x86_64/io_apic.h
Original file line number Diff line number Diff line change
Expand Up @@ -217,4 +217,6 @@ extern int assign_irq_vector(int irq);

void enable_NMI_through_LVT0 (void * dummy);

extern spinlock_t i8259A_lock;

#endif

0 comments on commit d472020

Please sign in to comment.