Skip to content

Commit 3bd7f01

Browse files
jessorensenaegl
authored andcommitted
[IA64] uncached ref count leak
Use raw_smp_processor_id() instead of get_cpu() as we don't need the extra features of get_cpu(). Signed-off-by: Jes Sorensen <jes@trained-monkey.org> Signed-off-by: Tony Luck <tony.luck@intel.com>
1 parent f5899b5 commit 3bd7f01

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎arch/ia64/kernel/uncached.c‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ static void uncached_ipi_visibility(void *data)
5353
if ((status != PAL_VISIBILITY_OK) &&
5454
(status != PAL_VISIBILITY_OK_REMOTE_NEEDED))
5555
printk(KERN_DEBUG "pal_prefetch_visibility() returns %i on "
56-
"CPU %i\n", status, get_cpu());
56+
"CPU %i\n", status, raw_smp_processor_id());
5757
}
5858

5959

@@ -63,7 +63,7 @@ static void uncached_ipi_mc_drain(void *data)
6363
status = ia64_pal_mc_drain();
6464
if (status)
6565
printk(KERN_WARNING "ia64_pal_mc_drain() failed with %i on "
66-
"CPU %i\n", status, get_cpu());
66+
"CPU %i\n", status, raw_smp_processor_id());
6767
}
6868

6969

@@ -105,7 +105,7 @@ uncached_get_new_chunk(struct gen_pool *poolp)
105105
status = ia64_pal_prefetch_visibility(PAL_VISIBILITY_PHYSICAL);
106106

107107
dprintk(KERN_INFO "pal_prefetch_visibility() returns %i on cpu %i\n",
108-
status, get_cpu());
108+
status, raw_smp_processor_id());
109109

110110
if (!status) {
111111
status = smp_call_function(uncached_ipi_visibility, NULL, 0, 1);

0 commit comments

Comments
 (0)