Skip to content

Commit

Permalink
Blackfin: convert simple headers to asm-generic
Browse files Browse the repository at this point in the history
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
  • Loading branch information
Mike Frysinger committed Jun 19, 2009
1 parent 3be5646 commit 094167b
Show file tree
Hide file tree
Showing 20 changed files with 10 additions and 170 deletions.
5 changes: 1 addition & 4 deletions arch/blackfin/include/asm/auxvec.h
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#ifndef __ASMBFIN_AUXVEC_H
#define __ASMBFIN_AUXVEC_H

#endif
#include <asm-generic/auxvec.h>
17 changes: 1 addition & 16 deletions arch/blackfin/include/asm/bugs.h
Original file line number Diff line number Diff line change
@@ -1,16 +1 @@
/*
* include/asm-blackfin/bugs.h
*
* Copyright (C) 1994 Linus Torvalds
*/

/*
* This is included by init/main.c to check for architecture-dependent bugs.
*
* Needs:
* void check_bugs(void);
*/

static void check_bugs(void)
{
}
#include <asm-generic/bugs.h>
5 changes: 0 additions & 5 deletions arch/blackfin/include/asm/cputime.h
Original file line number Diff line number Diff line change
@@ -1,6 +1 @@
#ifndef __BLACKFIN_CPUTIME_H
#define __BLACKFIN_CPUTIME_H

#include <asm-generic/cputime.h>

#endif /* __BLACKFIN_CPUTIME_H */
24 changes: 1 addition & 23 deletions arch/blackfin/include/asm/current.h
Original file line number Diff line number Diff line change
@@ -1,23 +1 @@
#ifndef _BLACKFIN_CURRENT_H
#define _BLACKFIN_CURRENT_H
/*
* current.h
* (C) Copyright 2000, Lineo, David McCullough <davidm@lineo.com>
*
* rather than dedicate a register (as the m68k source does), we
* just keep a global, we should probably just change it all to be
* current and lose _current_task.
*/
#include <linux/thread_info.h>

struct task_struct;

static inline struct task_struct *get_current(void) __attribute__ ((__const__));
static inline struct task_struct *get_current(void)
{
return (current_thread_info()->task);
}

#define current (get_current())

#endif /* _BLACKFIN_CURRENT_H */
#include <asm-generic/current.h>
6 changes: 0 additions & 6 deletions arch/blackfin/include/asm/device.h
Original file line number Diff line number Diff line change
@@ -1,7 +1 @@
/*
* Arch specific extensions to struct device
*
* This file is released under the GPLv2
*/
#include <asm-generic/device.h>

5 changes: 0 additions & 5 deletions arch/blackfin/include/asm/emergency-restart.h
Original file line number Diff line number Diff line change
@@ -1,6 +1 @@
#ifndef _ASM_EMERGENCY_RESTART_H
#define _ASM_EMERGENCY_RESTART_H

#include <asm-generic/emergency-restart.h>

#endif /* _ASM_EMERGENCY_RESTART_H */
7 changes: 1 addition & 6 deletions arch/blackfin/include/asm/errno.h
Original file line number Diff line number Diff line change
@@ -1,6 +1 @@
#ifndef _BFIN_ERRNO_H
#define _BFIN_ERRNO_H

#include<asm-generic/errno.h>

#endif /* _BFIN_ERRNO_H */
#include <asm-generic/errno.h>
13 changes: 1 addition & 12 deletions arch/blackfin/include/asm/fb.h
Original file line number Diff line number Diff line change
@@ -1,12 +1 @@
#ifndef _ASM_FB_H_
#define _ASM_FB_H_
#include <linux/fb.h>

#define fb_pgprotect(...) do {} while (0)

static inline int fb_is_primary_device(struct fb_info *info)
{
return 0;
}

#endif /* _ASM_FB_H_ */
#include <asm-generic/fb.h>
5 changes: 0 additions & 5 deletions arch/blackfin/include/asm/futex.h
Original file line number Diff line number Diff line change
@@ -1,6 +1 @@
#ifndef _ASM_FUTEX_H
#define _ASM_FUTEX_H

#include <asm-generic/futex.h>

#endif
7 changes: 1 addition & 6 deletions arch/blackfin/include/asm/hw_irq.h
Original file line number Diff line number Diff line change
@@ -1,6 +1 @@
#ifndef __ASM_BFIN_HW_IRQ_H
#define __ASM_BFIN_HW_IRQ_H

/* Dummy include. */

#endif
#include <asm-generic/hw_irq.h>
5 changes: 0 additions & 5 deletions arch/blackfin/include/asm/kmap_types.h
Original file line number Diff line number Diff line change
@@ -1,6 +1 @@
#ifndef _ASM_KMAP_TYPES_H
#define _ASM_KMAP_TYPES_H

#include <asm-generic/kmap_types.h>

#endif
5 changes: 0 additions & 5 deletions arch/blackfin/include/asm/local.h
Original file line number Diff line number Diff line change
@@ -1,6 +1 @@
#ifndef __BLACKFIN_LOCAL_H
#define __BLACKFIN_LOCAL_H

#include <asm-generic/local.h>

#endif /* __BLACKFIN_LOCAL_H */
23 changes: 1 addition & 22 deletions arch/blackfin/include/asm/param.h
Original file line number Diff line number Diff line change
@@ -1,22 +1 @@
#ifndef _BLACKFIN_PARAM_H
#define _BLACKFIN_PARAM_H

#ifdef __KERNEL__
#define HZ CONFIG_HZ
#define USER_HZ 100
#define CLOCKS_PER_SEC (USER_HZ)
#endif

#ifndef HZ
#define HZ 100
#endif

#define EXEC_PAGESIZE 4096

#ifndef NOGROUP
#define NOGROUP (-1)
#endif

#define MAXHOSTNAMELEN 64 /* max length of hostname */

#endif /* _BLACKFIN_PARAM_H */
#include <asm-generic/param.h>
5 changes: 0 additions & 5 deletions arch/blackfin/include/asm/percpu.h
Original file line number Diff line number Diff line change
@@ -1,6 +1 @@
#ifndef __ARCH_BLACKFIN_PERCPU__
#define __ARCH_BLACKFIN_PERCPU__

#include <asm-generic/percpu.h>

#endif /* __ARCH_BLACKFIN_PERCPU__ */
9 changes: 1 addition & 8 deletions arch/blackfin/include/asm/pgalloc.h
Original file line number Diff line number Diff line change
@@ -1,8 +1 @@
#ifndef _BLACKFIN_PGALLOC_H
#define _BLACKFIN_PGALLOC_H

#include <asm/setup.h>

#define check_pgt_cache() do { } while (0)

#endif /* _BLACKFIN_PGALLOC_H */
#include <asm-generic/pgalloc.h>
5 changes: 0 additions & 5 deletions arch/blackfin/include/asm/resource.h
Original file line number Diff line number Diff line change
@@ -1,6 +1 @@
#ifndef _BFIN_RESOURCE_H
#define _BFIN_RESOURCE_H

#include <asm-generic/resource.h>

#endif /* _BFIN_RESOURCE_H */
6 changes: 1 addition & 5 deletions arch/blackfin/include/asm/serial.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,2 @@
/*
* include/asm-blackfin/serial.h
*/

#include <asm-generic/serial.h>
#define SERIAL_EXTRA_IRQ_FLAGS IRQF_TRIGGER_HIGH
#define BASE_BAUD (1843200 / 16)
18 changes: 1 addition & 17 deletions arch/blackfin/include/asm/setup.h
Original file line number Diff line number Diff line change
@@ -1,17 +1 @@
/*
** asm/setup.h -- Definition of the Linux/bfin setup information
**
** 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 Lineo, Inc 2001 Tony Kou
**
*/

#ifndef _BFIN_SETUP_H
#define _BFIN_SETUP_H

#define COMMAND_LINE_SIZE 512

#endif /* _BFIN_SETUP_H */
#include <asm-generic/setup.h>
5 changes: 0 additions & 5 deletions arch/blackfin/include/asm/statfs.h
Original file line number Diff line number Diff line change
@@ -1,6 +1 @@
#ifndef _BFIN_STATFS_H
#define _BFIN_STATFS_H

#include <asm-generic/statfs.h>

#endif /* _BFIN_STATFS_H */
5 changes: 0 additions & 5 deletions arch/blackfin/include/asm/topology.h
Original file line number Diff line number Diff line change
@@ -1,6 +1 @@
#ifndef _ASM_BLACKFIN_TOPOLOGY_H
#define _ASM_BLACKFIN_TOPOLOGY_H

#include <asm-generic/topology.h>

#endif /* _ASM_BLACKFIN_TOPOLOGY_H */

0 comments on commit 094167b

Please sign in to comment.