summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAnton Blanchard <anton@samba.org>2003-05-03 02:26:02 +1000
committerAnton Blanchard <anton@samba.org>2003-05-03 02:26:02 +1000
commitde7924cb129f36cac058f77afa818da5ceeb6c05 (patch)
tree799a98d9a470543d0695395df031cf0c220c957b /include
parent1050d7c7f79dd394bb739e6faf989a302418d697 (diff)
parenteb0a5728e048e61e7802a0aa3e1dcd9d0353e78f (diff)
Merge samba.org:/scratch/anton/linux-2.5
into samba.org:/scratch/anton/tmp3
Diffstat (limited to 'include')
-rw-r--r--include/asm-i386/processor.h4
-rw-r--r--include/asm-x86_64/floppy.h6
-rw-r--r--include/asm-x86_64/mpspec.h2
-rw-r--r--include/asm-x86_64/msr.h3
-rw-r--r--include/asm-x86_64/processor.h7
-rw-r--r--include/asm-x86_64/vsyscall.h1
-rw-r--r--include/linux/usb.h3
7 files changed, 19 insertions, 7 deletions
diff --git a/include/asm-i386/processor.h b/include/asm-i386/processor.h
index d69cc46d5866..6bbb21e6e205 100644
--- a/include/asm-i386/processor.h
+++ b/include/asm-i386/processor.h
@@ -564,7 +564,7 @@ static inline void rep_nop(void)
#define ARCH_HAS_PREFETCH
extern inline void prefetch(const void *x)
{
- alternative_input(ASM_NOP3,
+ alternative_input(ASM_NOP4,
"prefetchnta (%1)",
X86_FEATURE_XMM,
"r" (x));
@@ -578,7 +578,7 @@ extern inline void prefetch(const void *x)
spinlocks to avoid one state transition in the cache coherency protocol. */
extern inline void prefetchw(const void *x)
{
- alternative_input(ASM_NOP3,
+ alternative_input(ASM_NOP4,
"prefetchw (%1)",
X86_FEATURE_3DNOW,
"r" (x));
diff --git a/include/asm-x86_64/floppy.h b/include/asm-x86_64/floppy.h
index cc1eacfacefe..738395d6d31c 100644
--- a/include/asm-x86_64/floppy.h
+++ b/include/asm-x86_64/floppy.h
@@ -51,7 +51,7 @@ static char *virtual_dma_addr;
static int virtual_dma_mode;
static int doing_pdma;
-static void floppy_hardint(int irq, void *dev_id, struct pt_regs * regs)
+static irqreturn_t floppy_hardint(int irq, void *dev_id, struct pt_regs * regs)
{
register unsigned char st;
@@ -109,12 +109,14 @@ static void floppy_hardint(int irq, void *dev_id, struct pt_regs * regs)
#endif
doing_pdma = 0;
floppy_interrupt(irq, dev_id, regs);
- return;
+ return IRQ_HANDLED;
}
#ifdef TRACE_FLPY_INT
if(!virtual_dma_count)
dma_wait++;
#endif
+
+ return IRQ_HANDLED;
}
static void fd_disable_dma(void)
diff --git a/include/asm-x86_64/mpspec.h b/include/asm-x86_64/mpspec.h
index 8ef120fe2274..8b2b0ed06e01 100644
--- a/include/asm-x86_64/mpspec.h
+++ b/include/asm-x86_64/mpspec.h
@@ -198,6 +198,8 @@ extern void mp_parse_prt (void);
#endif /*CONFIG_X86_IO_APIC*/
#endif
+extern void mp_config_ioapic_for_sci(int irq);
+
extern int using_apic_timer;
#endif
diff --git a/include/asm-x86_64/msr.h b/include/asm-x86_64/msr.h
index c57f9da6efab..626bd0400c56 100644
--- a/include/asm-x86_64/msr.h
+++ b/include/asm-x86_64/msr.h
@@ -228,6 +228,9 @@ extern inline unsigned int cpuid_edx(unsigned int op)
/* VIA Cyrix defined MSRs*/
#define MSR_VIA_FCR 0x1107
+#define MSR_VIA_LONGHAUL 0x110a
+#define MSR_VIA_RNG 0x110b
+#define MSR_VIA_BCR2 0x1147
/* Intel defined MSRs. */
#define MSR_IA32_P5_MC_ADDR 0
diff --git a/include/asm-x86_64/processor.h b/include/asm-x86_64/processor.h
index 49d3c6ee414d..7021042a4444 100644
--- a/include/asm-x86_64/processor.h
+++ b/include/asm-x86_64/processor.h
@@ -304,11 +304,16 @@ extern inline void sync_core(void)
#define cpu_has_fpu 1
+#if 0
+/* disabled for now to work around opteron errata #91. Also gcc 3.2
+ doesn't like this in some cases. */
#define ARCH_HAS_PREFETCH
+#define prefetch(x) __builtin_prefetch((x),0,1)
+#endif
+
#define ARCH_HAS_PREFETCHW
#define ARCH_HAS_SPINLOCK_PREFETCH
-#define prefetch(x) __builtin_prefetch((x),0,1)
#define prefetchw(x) __builtin_prefetch((x),1,1)
#define spin_lock_prefetch(x) prefetchw(x)
#define cpu_relax() rep_nop()
diff --git a/include/asm-x86_64/vsyscall.h b/include/asm-x86_64/vsyscall.h
index 4c6a539ca7dc..86947472e9fd 100644
--- a/include/asm-x86_64/vsyscall.h
+++ b/include/asm-x86_64/vsyscall.h
@@ -1,7 +1,6 @@
#ifndef _ASM_X86_64_VSYSCALL_H_
#define _ASM_X86_64_VSYSCALL_H_
-#include <linux/time.h>
#include <linux/seqlock.h>
enum vsyscall_num {
diff --git a/include/linux/usb.h b/include/linux/usb.h
index cd50f3ede6d3..7ad72ec2c8ad 100644
--- a/include/linux/usb.h
+++ b/include/linux/usb.h
@@ -765,6 +765,7 @@ static inline void usb_fill_int_urb (struct urb *urb,
urb->start_frame = -1;
}
+extern void usb_init_urb(struct urb *urb);
extern struct urb *usb_alloc_urb(int iso_packets, int mem_flags);
extern void usb_free_urb(struct urb *urb);
#define usb_put_urb usb_free_urb
@@ -973,7 +974,7 @@ void usb_show_device(struct usb_device *);
void usb_show_string(struct usb_device *dev, char *id, int index);
#ifdef DEBUG
-#define dbg(format, arg...) printk(KERN_DEBUG __FILE__ ": " format "\n" , ## arg)
+#define dbg(format, arg...) printk(KERN_DEBUG "%s: " format "\n" , __FILE__ , ## arg)
#else
#define dbg(format, arg...) do {} while (0)
#endif