Re: [PATCH] FRV: Wire up new syscalls

From: Ingo Molnar
Date: Wed Jul 01 2009 - 09:13:49 EST



* David Howells <dhowells@xxxxxxxxxx> wrote:

> Paul Mackerras <paulus@xxxxxxxxx> wrote:
>
> > I did a generic implementation using irq disable on UP and
> > hashed spin-locks on SMP. See 09d4e0ed for the implementation
>
> I can do better than that on FRV. FRV has load/store-double
> instructions that I can use to atomically load/store 64-bit memory
> locations by using paired registers for the data.

Yeah - still i'd suggest to just go with the generic code initially,
as then 'perf' output itself can be used to verify whether the FRV
atomic64_t implementation is correct.

Ingo
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/