Re: MIPS atomic_set_mask and atomic_clear_mask

From: Ralf Baechle
Date: Thu Jan 31 2013 - 05:35:38 EST


On Thu, Jan 31, 2013 at 11:43:21AM +0800, yili0568@xxxxxxxxx wrote:

> Hello, everybody:
> Does MIPS need the functions atomic_set_mask and atomic_clear_mask?
> Or how can I implement these functions.

No, it doesn't need them. a quick grep would have shown that all users
are either other architectures or architecture-specific code.

As for a possible implementation, there are plenty of examples in
<asm/bitops.h> and <asm/atomic.h> that would need only minor modification.

Ralf
--
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/