Skip to contentSkip to conversation

MIPS: use generic current.h

PATCH In review Yoichi Yuasa 2 participants 8 messages Feb 12, 2010 – Feb 17, 2010 MIPS

lore
Share & tools
lore
#0 lore raw

PATCH 1/4 MIPS: use generic current.h

---
 arch/mips/include/asm/current.h |   24 +-----------------------
 1 files changed, 1 insertions(+), 23 deletions(-)
arch/mips/include/asm/current.h +1 -23
index 559db66..4c51401 100644
@@ -1,23 +1 @@
-/*
- * This file is subject to the terms and conditions of the GNU General Public
- * License.  See the file "COPYING" in the main directory of this archive
- * for more details.
- *
- * Copyright (C) 1998, 2002 Ralf Baechle
- * Copyright (C) 1999 Silicon Graphics, Inc.
- */
-#ifndef _ASM_CURRENT_H
-#define _ASM_CURRENT_H
-
-#include <linux/thread_info.h>
-
-struct task_struct;
-
-static inline struct task_struct * get_current(void)
-{
-	return current_thread_info()->task;
-}
-
-#define current		get_current()
-
-#endif /* _ASM_CURRENT_H */
+#include <asm-generic/current.h>
Signature · 1 line
1.6.6.2
#1 lore raw

PATCH 2/4 MIPS: use generic parport.h

---
 arch/mips/include/asm/parport.h |   16 +---------------
 1 files changed, 1 insertions(+), 15 deletions(-)
arch/mips/include/asm/parport.h +1 -15
index f526568..cf252af 100644
@@ -1,15 +1 @@
-/*
- * Copyright (C) 1999, 2000  Tim Waugh <[email protected]>
- *
- * This file should only be included by drivers/parport/parport_pc.c.
- */
-#ifndef _ASM_PARPORT_H
-#define _ASM_PARPORT_H
-
-static int __devinit parport_pc_find_isa_ports(int autoirq, int autodma);
-static int __devinit parport_pc_find_nonpci_ports(int autoirq, int autodma)
-{
-	return parport_pc_find_isa_ports(autoirq, autodma);
-}
-
-#endif /* _ASM_PARPORT_H */
+#include <asm-generic/parport.h>
Signature · 1 line
1.6.6.2
#2 lore raw

PATCH 3/4 MIPS: use generic serial.h

---
 arch/mips/include/asm/serial.h |   23 +----------------------
 1 files changed, 1 insertions(+), 22 deletions(-)
arch/mips/include/asm/serial.h +1 -22
index c07ebd8..a0cb0ca 100644
@@ -1,22 +1 @@
-/*
- * This file is subject to the terms and conditions of the GNU General Public
- * License.  See the file "COPYING" in the main directory of this archive
- * for more details.
- *
- * Copyright (C) 1999 by Ralf Baechle
- * Copyright (C) 1999, 2000 Silicon Graphics, Inc.
- */
-#ifndef _ASM_SERIAL_H
-#define _ASM_SERIAL_H
-
-
-/*
- * This assumes you have a 1.8432 MHz clock for your UART.
- *
- * It'd be nice if someone built a serial card with a 24.576 MHz
- * clock, since the 16550A is capable of handling a top speed of 1.5
- * megabits/second; but this requires the faster clock.
- */
-#define BASE_BAUD (1843200 / 16)
-
-#endif /* _ASM_SERIAL_H */
+#include <asm-generic/serial.h>
Signature · 1 line
1.6.6.2
#3 lore raw

PATCH 4/4 MIPS: use generic ucontext.h

---
 arch/mips/include/asm/ucontext.h |   22 +---------------------
 1 files changed, 1 insertions(+), 21 deletions(-)
arch/mips/include/asm/ucontext.h +1 -21
index 8a4b20e..9bc07b9 100644
@@ -1,21 +1 @@
-/*
- * This file is subject to the terms and conditions of the GNU General Public
- * License.  See the file "COPYING" in the main directory of this archive
- * for more details.
- *
- * Low level exception handling
- *
- * Copyright (C) 1998, 1999 by Ralf Baechle
- */
-#ifndef _ASM_UCONTEXT_H
-#define _ASM_UCONTEXT_H
-
-struct ucontext {
-	unsigned long	  uc_flags;
-	struct ucontext  *uc_link;
-	stack_t		  uc_stack;
-	struct sigcontext uc_mcontext;
-	sigset_t	  uc_sigmask;	/* mask last for extensibility */
-};
-
-#endif /* _ASM_UCONTEXT_H */
+#include <asm-generic/ucontext.h>
Signature · 1 line
1.6.6.2
#4 lore raw

Re: [PATCH -queue 4/4] MIPS: use generic ucontext.h

Thanks, queued for 2.6.34.

Ralf