[RFC PATCH 9/9] powerpc: rewrite local_t using soft_irq

Nicholas Piggin npiggin at gmail.com
Tue Jul 26 15:53:01 AEST 2016


On Mon, 25 Jul 2016 20:22:22 +0530
Madhavan Srinivasan <maddy at linux.vnet.ibm.com> wrote:

> https://lkml.org/lkml/2008/12/16/450
> 
> Modifications to Rusty's benchmark code:
>  - Executed only local_t test
> 
> Here are the values with the patch.
> 
> Time in ns per iteration
> 
> Local_t		Without Patch		With Patch
> 
> _inc			28		8
> _add			28		8
> _read			3		3
> _add_return		28		7
> 
> Tested the patch in a
>  - pSeries LPAR (with perf record)

Very nice. I'd like to see these patches get in. We can
probably use the feature in other places too.

Thanks,
Nick


More information about the Linuxppc-dev mailing list