diff options
author | KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com> | 2011-05-24 20:12:58 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-05-25 11:39:39 -0400 |
commit | 8ea9716fd6aa761482caa5d4d64b256ed07ac09f (patch) | |
tree | 1dbe6d8bbb9557b27e0a6b0a7d0f3d6934926368 /arch/mn10300/mm/cache-smp.c | |
parent | 81ee42baa433881bcb471aa6366e2f885a33f2fb (diff) |
mn10300: convert old cpumask API into new one
Adapt to the new API.
We plan to remove old cpumask APIs later. Thus this patch converts them
into the new one.
Signed-off-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Cc: David Howells <dhowells@redhat.com>
Cc: Koichi Yasutake <yasutake.koichi@jp.panasonic.com>
Cc: Hugh Dickins <hughd@google.com>
Cc: Chris Metcalf <cmetcalf@tilera.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/mn10300/mm/cache-smp.c')
-rw-r--r-- | arch/mn10300/mm/cache-smp.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/mn10300/mm/cache-smp.c b/arch/mn10300/mm/cache-smp.c index 4a6e9a4b5b27..2d23b9eeee62 100644 --- a/arch/mn10300/mm/cache-smp.c +++ b/arch/mn10300/mm/cache-smp.c | |||
@@ -74,7 +74,7 @@ void smp_cache_interrupt(void) | |||
74 | break; | 74 | break; |
75 | } | 75 | } |
76 | 76 | ||
77 | cpu_clear(smp_processor_id(), smp_cache_ipi_map); | 77 | cpumask_clear_cpu(smp_processor_id(), &smp_cache_ipi_map); |
78 | } | 78 | } |
79 | 79 | ||
80 | /** | 80 | /** |
@@ -94,12 +94,12 @@ void smp_cache_call(unsigned long opr_mask, | |||
94 | smp_cache_mask = opr_mask; | 94 | smp_cache_mask = opr_mask; |
95 | smp_cache_start = start; | 95 | smp_cache_start = start; |
96 | smp_cache_end = end; | 96 | smp_cache_end = end; |
97 | smp_cache_ipi_map = cpu_online_map; | 97 | cpumask_copy(&smp_cache_ipi_map, cpu_online_mask); |
98 | cpu_clear(smp_processor_id(), smp_cache_ipi_map); | 98 | cpumask_clear_cpu(smp_processor_id(), &smp_cache_ipi_map); |
99 | 99 | ||
100 | send_IPI_allbutself(FLUSH_CACHE_IPI); | 100 | send_IPI_allbutself(FLUSH_CACHE_IPI); |
101 | 101 | ||
102 | while (!cpus_empty(smp_cache_ipi_map)) | 102 | while (!cpumask_empty(&smp_cache_ipi_map)) |
103 | /* nothing. lockup detection does not belong here */ | 103 | /* nothing. lockup detection does not belong here */ |
104 | mb(); | 104 | mb(); |
105 | } | 105 | } |