diff options
author | Dean Nelson <dcn@sgi.com> | 2008-07-30 01:34:11 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-07-30 12:41:49 -0400 |
commit | c39838ce21ca8e05857ed7f4be5d289011561905 (patch) | |
tree | bbe06be2e9184b12065edbd8a5cff5fd9f68b67e /include/asm-ia64/sn/mspec.h | |
parent | 7fb5e59d63deda89a8eefdbd5b3c8d622076afd4 (diff) |
sgi-xp: replace AMO_t typedef by struct amo
Replace the AMO_t typedef by a direct reference to 'struct amo'.
Signed-off-by: Dean Nelson <dcn@sgi.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/asm-ia64/sn/mspec.h')
-rw-r--r-- | include/asm-ia64/sn/mspec.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/include/asm-ia64/sn/mspec.h b/include/asm-ia64/sn/mspec.h index dbe13c6121a8..c1d3c50c3223 100644 --- a/include/asm-ia64/sn/mspec.h +++ b/include/asm-ia64/sn/mspec.h | |||
@@ -4,7 +4,7 @@ | |||
4 | * License. See the file "COPYING" in the main directory of this archive | 4 | * License. See the file "COPYING" in the main directory of this archive |
5 | * for more details. | 5 | * for more details. |
6 | * | 6 | * |
7 | * Copyright (c) 2001-2004 Silicon Graphics, Inc. All rights reserved. | 7 | * Copyright (c) 2001-2008 Silicon Graphics, Inc. All rights reserved. |
8 | */ | 8 | */ |
9 | 9 | ||
10 | #ifndef _ASM_IA64_SN_MSPEC_H | 10 | #ifndef _ASM_IA64_SN_MSPEC_H |
@@ -32,26 +32,26 @@ | |||
32 | #ifdef __KERNEL__ | 32 | #ifdef __KERNEL__ |
33 | 33 | ||
34 | /* | 34 | /* |
35 | * Each Atomic Memory Operation (AMO formerly known as fetchop) | 35 | * Each Atomic Memory Operation (amo, formerly known as fetchop) |
36 | * variable is 64 bytes long. The first 8 bytes are used. The | 36 | * variable is 64 bytes long. The first 8 bytes are used. The |
37 | * remaining 56 bytes are unaddressable due to the operation taking | 37 | * remaining 56 bytes are unaddressable due to the operation taking |
38 | * that portion of the address. | 38 | * that portion of the address. |
39 | * | 39 | * |
40 | * NOTE: The AMO_t _MUST_ be placed in either the first or second half | 40 | * NOTE: The amo structure _MUST_ be placed in either the first or second |
41 | * of the cache line. The cache line _MUST NOT_ be used for anything | 41 | * half of the cache line. The cache line _MUST NOT_ be used for anything |
42 | * other than additional AMO_t entries. This is because there are two | 42 | * other than additional amo entries. This is because there are two |
43 | * addresses which reference the same physical cache line. One will | 43 | * addresses which reference the same physical cache line. One will |
44 | * be a cached entry with the memory type bits all set. This address | 44 | * be a cached entry with the memory type bits all set. This address |
45 | * may be loaded into processor cache. The AMO_t will be referenced | 45 | * may be loaded into processor cache. The amo will be referenced |
46 | * uncached via the memory special memory type. If any portion of the | 46 | * uncached via the memory special memory type. If any portion of the |
47 | * cached cache-line is modified, when that line is flushed, it will | 47 | * cached cache-line is modified, when that line is flushed, it will |
48 | * overwrite the uncached value in physical memory and lead to | 48 | * overwrite the uncached value in physical memory and lead to |
49 | * inconsistency. | 49 | * inconsistency. |
50 | */ | 50 | */ |
51 | typedef struct { | 51 | struct amo { |
52 | u64 variable; | 52 | u64 variable; |
53 | u64 unused[7]; | 53 | u64 unused[7]; |
54 | } AMO_t; | 54 | }; |
55 | 55 | ||
56 | 56 | ||
57 | #endif /* __KERNEL__ */ | 57 | #endif /* __KERNEL__ */ |