Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3bd7f017 authored by Jes Sorensen's avatar Jes Sorensen Committed by Tony Luck
Browse files

[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: default avatarJes Sorensen <jes@trained-monkey.org>
Signed-off-by: default avatarTony Luck <tony.luck@intel.com>
parent f5899b5d
Loading
Loading
Loading
Loading
+3 −3
Original line number Original line Diff line number Diff line
@@ -53,7 +53,7 @@ static void uncached_ipi_visibility(void *data)
	if ((status != PAL_VISIBILITY_OK) &&
	if ((status != PAL_VISIBILITY_OK) &&
	    (status != PAL_VISIBILITY_OK_REMOTE_NEEDED))
	    (status != PAL_VISIBILITY_OK_REMOTE_NEEDED))
		printk(KERN_DEBUG "pal_prefetch_visibility() returns %i on "
		printk(KERN_DEBUG "pal_prefetch_visibility() returns %i on "
		       "CPU %i\n", status, get_cpu());
		       "CPU %i\n", status, raw_smp_processor_id());
}
}




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




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


	dprintk(KERN_INFO "pal_prefetch_visibility() returns %i on cpu %i\n",
	dprintk(KERN_INFO "pal_prefetch_visibility() returns %i on cpu %i\n",
		status, get_cpu());
		status, raw_smp_processor_id());


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