Prev: Staging: batman-adv: fixed comments to maintain 80 char limit
Next: [PATCH 2/4] blkdev: allow async blkdev_issue_flush requests
From: Mathieu Desnoyers on 28 Apr 2010 10:00 * Arnd Bergmann (arnd(a)arndb.de) wrote: > On Wednesday 28 April 2010, Peter Fritzsche wrote: > > 32-bit Sparc used to only allow usage of 24-bit of it's atomic_t type. > > This was corrected with linux 2.6.3 when Keith M Wesolowski changed the > > implementation to use the parisc approach of having an array of > > spinlocks to protect the atomic_t. > > > > These warnings were also removed from the sparc implementation when the > > new implementation was merged in BKrev:402e4949VThdc6D3iaosSFUgabMfvw, > > but the warning still remained in some other places without any > > 24-bit-only atomic_t implementation inside the kernel. > > > > We should remove these warnings to allow users to rely on the full > > 32-bit range of atomic_t. > > > > Signed-off-by: Peter Fritzsche <peter.fritzsche(a)gmx.de> > > Acked-by: Arnd Bergmann <arnd(a)arndb.de> AFAIK that was the last architecture imposing limitations below 32 bits on atomic_t. Acked-by: Mathieu Desnoyers <mathieu.desnoyers(a)efficios.com> -- Mathieu Desnoyers Operating System Efficiency R&D Consultant EfficiOS Inc. http://www.efficios.com -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo(a)vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
From: Mathieu Desnoyers on 28 Apr 2010 12:30 * Jamie Lokier (jamie(a)shareable.org) wrote: > Mathieu Desnoyers wrote: > > * Arnd Bergmann (arnd(a)arndb.de) wrote: > > > On Wednesday 28 April 2010, Peter Fritzsche wrote: > > > > 32-bit Sparc used to only allow usage of 24-bit of it's atomic_t type. > > > > This was corrected with linux 2.6.3 when Keith M Wesolowski changed the > > > > implementation to use the parisc approach of having an array of > > > > spinlocks to protect the atomic_t. > > > > > > > > These warnings were also removed from the sparc implementation when the > > > > new implementation was merged in BKrev:402e4949VThdc6D3iaosSFUgabMfvw, > > > > but the warning still remained in some other places without any > > > > 24-bit-only atomic_t implementation inside the kernel. > > > > > > > > We should remove these warnings to allow users to rely on the full > > > > 32-bit range of atomic_t. > > > > > > > > Signed-off-by: Peter Fritzsche <peter.fritzsche(a)gmx.de> > > > > > > Acked-by: Arnd Bergmann <arnd(a)arndb.de> > > > > AFAIK that was the last architecture imposing limitations below 32 bits > > on atomic_t. > > > > Acked-by: Mathieu Desnoyers <mathieu.desnoyers(a)efficios.com> > > If the comment's getting removed, it should probably go from here too: > > linux-2.6$ git grep '24' arch/*/include/*/atomic* > arch/mn10300/include/asm/atomic.h: * useful range of an atomic_t is only 24 bits > arch/mn10300/include/asm/atomic.h: * useful range of an atomic_t is only 24 bits > arch/mn10300/include/asm/atomic.h: * Note that the guaranteed useful range of an > arch/mn10300/include/asm/atomic.h: * Note that the guaranteed useful range of an How about simply replacing arch/mn10300/include/asm/atomic.h by: arch/mn10300/include/asm/atomic.h: #include <asm-generic/atomic.h> ? This should have been done a while ago. They are almost the same, except for added cmpxchg*_local() in the asm-generic version (which would benefit to mn10300). Thanks, Mathieu > > -- Jamie -- Mathieu Desnoyers Operating System Efficiency R&D Consultant EfficiOS Inc. http://www.efficios.com -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo(a)vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
From: Mathieu Desnoyers on 30 Apr 2010 13:50
* David Howells (dhowells(a)redhat.com) wrote: > Mathieu Desnoyers <mathieu.desnoyers(a)efficios.com> wrote: > > > How about simply replacing arch/mn10300/include/asm/atomic.h by: > > > > arch/mn10300/include/asm/atomic.h: > > #include <asm-generic/atomic.h> > > > > ? > > > > This should have been done a while ago. They are almost the same, except for > > added cmpxchg*_local() in the asm-generic version (which would benefit to > > mn10300). > > Fine by me. Then I'll let Peter Fritzsche deal with that. I don't want to conflict with his current patches. Thanks, Mathieu > > David -- Mathieu Desnoyers Operating System Efficiency R&D Consultant EfficiOS Inc. http://www.efficios.com -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo(a)vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ |