Skip to content

Commit

Permalink
Blackfin: push down asm/ includes and out of bfin-global.h
Browse files Browse the repository at this point in the history
Avoid including unnecessary headers all the time as well as circular
includes with core requirements.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
  • Loading branch information
Mike Frysinger committed Dec 15, 2009
1 parent 872d024 commit bbc51e9
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
4 changes: 1 addition & 3 deletions arch/blackfin/include/asm/bfin-global.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@

#ifndef __ASSEMBLY__

#include <asm/sections.h>
#include <asm/ptrace.h>
#include <asm/user.h>
#include <linux/linkage.h>
#include <linux/types.h>

Expand All @@ -35,6 +32,7 @@ extern unsigned long get_sclk(void);
extern unsigned long sclk_to_usecs(unsigned long sclk);
extern unsigned long usecs_to_sclk(unsigned long usecs);

struct pt_regs;
extern void dump_bfin_process(struct pt_regs *regs);
extern void dump_bfin_mem(struct pt_regs *regs);
extern void dump_bfin_trace_buffer(void);
Expand Down
1 change: 1 addition & 0 deletions arch/blackfin/include/asm/cacheflush.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#define _BLACKFIN_CACHEFLUSH_H

#include <asm/blackfin.h> /* for SSYNC() */
#include <asm/sections.h> /* for _ramend */

extern void blackfin_icache_flush_range(unsigned long start_address, unsigned long end_address);
extern void blackfin_dcache_flush_range(unsigned long start_address, unsigned long end_address);
Expand Down
4 changes: 1 addition & 3 deletions arch/blackfin/include/asm/uaccess.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@
#include <linux/string.h>

#include <asm/segment.h>
#ifdef CONFIG_ACCESS_CHECK
# include <asm/bfin-global.h>
#endif
#include <asm/sections.h>

#define get_ds() (KERNEL_DS)
#define get_fs() (current_thread_info()->addr_limit)
Expand Down
1 change: 1 addition & 0 deletions arch/blackfin/kernel/dma-mapping.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
#include <linux/scatterlist.h>
#include <asm/cacheflush.h>
#include <asm/bfin-global.h>
#include <asm/sections.h>

static spinlock_t dma_page_lock;
static unsigned long *dma_page;
Expand Down

0 comments on commit bbc51e9

Please sign in to comment.