Skip to content

Commit c140d87

Browse files
committed
Disintegrate asm/system.h for IA64
Disintegrate asm/system.h for IA64. Signed-off-by: David Howells <dhowells@redhat.com> Acked-by: Tony Luck <tony.luck@intel.com> cc: linux-ia64@vger.kernel.org
1 parent 8335896 commit c140d87

61 files changed

Lines changed: 233 additions & 249 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎arch/ia64/dig/setup.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
#include <asm/io.h>
2424
#include <asm/machvec.h>
25-
#include <asm/system.h>
25+
#include <asm/setup.h>
2626

2727
void __init
2828
dig_setup (char **cmdline_p)

‎arch/ia64/hp/common/sba_iommu.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@
4343
#include <asm/io.h>
4444
#include <asm/page.h> /* PAGE_OFFSET */
4545
#include <asm/dma.h>
46-
#include <asm/system.h> /* wmb() */
4746

4847
#include <asm/acpi-ext.h>
4948

‎arch/ia64/hp/sim/boot/bootloader.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ struct task_struct; /* forward declaration for elf.h */
2020
#include <asm/pal.h>
2121
#include <asm/pgtable.h>
2222
#include <asm/sal.h>
23-
#include <asm/system.h>
2423

2524
#include "ssc.h"
2625

‎arch/ia64/hp/sim/boot/fw-emu.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
#include <asm/io.h>
1414
#include <asm/pal.h>
1515
#include <asm/sal.h>
16+
#include <asm/setup.h>
1617

1718
#include "ssc.h"
1819

‎arch/ia64/hp/sim/simeth.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
#include <linux/skbuff.h>
2121
#include <linux/notifier.h>
2222
#include <linux/bitops.h>
23-
#include <asm/system.h>
2423
#include <asm/irq.h>
2524
#include <asm/hpsim.h>
2625

‎arch/ia64/include/asm/acpi.h‎

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

3333
#include <linux/init.h>
3434
#include <linux/numa.h>
35-
#include <asm/system.h>
3635
#include <asm/numa.h>
3736

3837
#define COMPILER_DEPENDENT_INT64 long

‎arch/ia64/include/asm/atomic.h‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
#include <linux/types.h>
1616

1717
#include <asm/intrinsics.h>
18-
#include <asm/system.h>
1918

2019

2120
#define ATOMIC_INIT(i) ((atomic_t) { (i) })

‎arch/ia64/include/asm/auxvec.h‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,6 @@
88
#define AT_SYSINFO 32
99
#define AT_SYSINFO_EHDR 33
1010

11+
#define AT_VECTOR_SIZE_ARCH 2 /* entries in ARCH_DLINFO */
12+
1113
#endif /* _ASM_IA64_AUXVEC_H */

‎arch/ia64/include/asm/barrier.h‎

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
/*
2+
* Memory barrier definitions. This is based on information published
3+
* in the Processor Abstraction Layer and the System Abstraction Layer
4+
* manual.
5+
*
6+
* Copyright (C) 1998-2003 Hewlett-Packard Co
7+
* David Mosberger-Tang <davidm@hpl.hp.com>
8+
* Copyright (C) 1999 Asit Mallick <asit.k.mallick@intel.com>
9+
* Copyright (C) 1999 Don Dugger <don.dugger@intel.com>
10+
*/
11+
#ifndef _ASM_IA64_BARRIER_H
12+
#define _ASM_IA64_BARRIER_H
13+
14+
#include <linux/compiler.h>
15+
16+
/*
17+
* Macros to force memory ordering. In these descriptions, "previous"
18+
* and "subsequent" refer to program order; "visible" means that all
19+
* architecturally visible effects of a memory access have occurred
20+
* (at a minimum, this means the memory has been read or written).
21+
*
22+
* wmb(): Guarantees that all preceding stores to memory-
23+
* like regions are visible before any subsequent
24+
* stores and that all following stores will be
25+
* visible only after all previous stores.
26+
* rmb(): Like wmb(), but for reads.
27+
* mb(): wmb()/rmb() combo, i.e., all previous memory
28+
* accesses are visible before all subsequent
29+
* accesses and vice versa. This is also known as
30+
* a "fence."
31+
*
32+
* Note: "mb()" and its variants cannot be used as a fence to order
33+
* accesses to memory mapped I/O registers. For that, mf.a needs to
34+
* be used. However, we don't want to always use mf.a because (a)
35+
* it's (presumably) much slower than mf and (b) mf.a is supported for
36+
* sequential memory pages only.
37+
*/
38+
#define mb() ia64_mf()
39+
#define rmb() mb()
40+
#define wmb() mb()
41+
#define read_barrier_depends() do { } while(0)
42+
43+
#ifdef CONFIG_SMP
44+
# define smp_mb() mb()
45+
# define smp_rmb() rmb()
46+
# define smp_wmb() wmb()
47+
# define smp_read_barrier_depends() read_barrier_depends()
48+
#else
49+
# define smp_mb() barrier()
50+
# define smp_rmb() barrier()
51+
# define smp_wmb() barrier()
52+
# define smp_read_barrier_depends() do { } while(0)
53+
#endif
54+
55+
/*
56+
* XXX check on this ---I suspect what Linus really wants here is
57+
* acquire vs release semantics but we can't discuss this stuff with
58+
* Linus just yet. Grrr...
59+
*/
60+
#define set_mb(var, value) do { (var) = (value); mb(); } while (0)
61+
62+
/*
63+
* The group barrier in front of the rsm & ssm are necessary to ensure
64+
* that none of the previous instructions in the same group are
65+
* affected by the rsm/ssm.
66+
*/
67+
68+
#endif /* _ASM_IA64_BARRIER_H */

‎arch/ia64/include/asm/exec.h‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
/*
2+
* Process execution defines.
3+
*
4+
* Copyright (C) 1998-2003 Hewlett-Packard Co
5+
* David Mosberger-Tang <davidm@hpl.hp.com>
6+
* Copyright (C) 1999 Asit Mallick <asit.k.mallick@intel.com>
7+
* Copyright (C) 1999 Don Dugger <don.dugger@intel.com>
8+
*/
9+
#ifndef _ASM_IA64_EXEC_H
10+
#define _ASM_IA64_EXEC_H
11+
12+
#define arch_align_stack(x) (x)
13+
14+
#endif /* _ASM_IA64_EXEC_H */

0 commit comments

Comments
 (0)