Skip to content

Commit 705f450

Browse files
committed
Disintegrate asm/system.h for OpenRISC
Disintegrate asm/system.h for OpenRISC. Not compiled. Signed-off-by: David Howells <dhowells@redhat.com> Acked-by: Arnd Bergmann <arnd@arndb.de> cc: linux@lists.openrisc.net
1 parent 5d12506 commit 705f450

10 files changed

Lines changed: 8 additions & 43 deletions

File tree

‎arch/openrisc/include/asm/Kbuild‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ header-y += spr_defs.h
44

55
generic-y += atomic.h
66
generic-y += auxvec.h
7+
generic-y += barrier.h
78
generic-y += bitsperlong.h
89
generic-y += bug.h
910
generic-y += bugs.h
@@ -19,6 +20,7 @@ generic-y += div64.h
1920
generic-y += dma.h
2021
generic-y += emergency-restart.h
2122
generic-y += errno.h
23+
generic-y += exec.h
2224
generic-y += fb.h
2325
generic-y += fcntl.h
2426
generic-y += ftrace.h
@@ -55,6 +57,7 @@ generic-y += sockios.h
5557
generic-y += statfs.h
5658
generic-y += stat.h
5759
generic-y += string.h
60+
generic-y += switch_to.h
5861
generic-y += swab.h
5962
generic-y += termbits.h
6063
generic-y += termios.h

‎arch/openrisc/include/asm/system.h‎

Lines changed: 5 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,5 @@
1-
/*
2-
* OpenRISC Linux
3-
*
4-
* Linux architectural port borrowing liberally from similar works of
5-
* others. All original copyrights apply as per the original source
6-
* declaration.
7-
*
8-
* OpenRISC implementation:
9-
* Copyright (C) 2003 Matjaz Breskvar <phoenix@bsemi.com>
10-
* Copyright (C) 2010-2011 Jonas Bonn <jonas@southpole.se>
11-
* et al.
12-
*
13-
* This program is free software; you can redistribute it and/or modify
14-
* it under the terms of the GNU General Public License as published by
15-
* the Free Software Foundation; either version 2 of the License, or
16-
* (at your option) any later version.
17-
*/
18-
19-
#ifndef __ASM_OPENRISC_SYSTEM_H
20-
#define __ASM_OPENRISC_SYSTEM_H
21-
22-
#ifdef __KERNEL__
23-
#ifndef __ASSEMBLY__
24-
25-
#include <asm/spr.h>
26-
#include <asm-generic/system.h>
27-
28-
/* We probably need this definition, but the generic system.h provides it
29-
* and it's not used on our arch anyway...
30-
*/
31-
/*#define nop() __asm__ __volatile__ ("l.nop"::)*/
32-
33-
#endif /* __ASSEMBLY__ */
34-
#endif /* __KERNEL__ */
35-
#endif /* __ASM_OPENRISC_SYSTEM_H */
1+
/* FILE TO BE DELETED. DO NOT ADD STUFF HERE! */
2+
#include <asm/barrier.h>
3+
#include <asm/cmpxchg.h>
4+
#include <asm/exec.h>
5+
#include <asm/switch_to.h>

‎arch/openrisc/kernel/idle.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131

3232
#include <asm/pgtable.h>
3333
#include <asm/uaccess.h>
34-
#include <asm/system.h>
3534
#include <asm/io.h>
3635
#include <asm/processor.h>
3736
#include <asm/mmu.h>

‎arch/openrisc/kernel/process.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@
3838

3939
#include <asm/uaccess.h>
4040
#include <asm/pgtable.h>
41-
#include <asm/system.h>
4241
#include <asm/io.h>
4342
#include <asm/processor.h>
4443
#include <asm/spr_defs.h>

‎arch/openrisc/kernel/prom.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@
4242
#include <asm/processor.h>
4343
#include <asm/irq.h>
4444
#include <linux/io.h>
45-
#include <asm/system.h>
4645
#include <asm/mmu.h>
4746
#include <asm/pgtable.h>
4847
#include <asm/sections.h>

‎arch/openrisc/kernel/ptrace.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333
#include <asm/segment.h>
3434
#include <asm/page.h>
3535
#include <asm/pgtable.h>
36-
#include <asm/system.h>
3736

3837
/*
3938
* Copy the thread state to a regset that can be interpreted by userspace.

‎arch/openrisc/kernel/setup.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@
4141
#include <linux/of_platform.h>
4242

4343
#include <asm/segment.h>
44-
#include <asm/system.h>
4544
#include <asm/pgtable.h>
4645
#include <asm/types.h>
4746
#include <asm/setup.h>

‎arch/openrisc/kernel/traps.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333
#include <linux/kallsyms.h>
3434
#include <asm/uaccess.h>
3535

36-
#include <asm/system.h>
3736
#include <asm/segment.h>
3837
#include <asm/io.h>
3938
#include <asm/pgtable.h>

‎arch/openrisc/mm/init.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333
#include <linux/pagemap.h>
3434
#include <linux/memblock.h>
3535

36-
#include <asm/system.h>
3736
#include <asm/segment.h>
3837
#include <asm/pgalloc.h>
3938
#include <asm/pgtable.h>

‎arch/openrisc/mm/tlb.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
#include <linux/mm.h>
2727
#include <linux/init.h>
2828

29-
#include <asm/system.h>
3029
#include <asm/segment.h>
3130
#include <asm/tlbflush.h>
3231
#include <asm/pgtable.h>

0 commit comments

Comments
 (0)