Re: [PATCH] mm: remove global locks from mm/highmem.c

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Peter Zijlstra
Date: Monday, January 29, 2007 - 2:44 am

On Sun, 2007-01-28 at 14:29 -0800, Andrew Morton wrote:



CONFIG_HIGHPTE code in -rt was horrid. I'll do some measurements on
mainline.


It might have been my mistaken in understanding the latest cmpxchg
thread. My understanding was that since LL/SC is not exposable as a low
level primitive all platforms should implement a cmpxchg where some
would not be save against direct assignment.

Anyway, I'll do as Nick says and replace it with atomic_long_cmpxchg.


Point taken.


I thought GCC would automagically use masking when presented with a
power-of-two constant. Can make it more explicit though.


Eek, you are quite right.

-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] mm: remove global locks from mm/highmem.c, Peter Zijlstra, (Sun Jan 28, 7:11 am)
Re: [PATCH] mm: remove global locks from mm/highmem.c, Christoph Hellwig, (Sun Jan 28, 7:49 am)
Re: [PATCH] mm: remove global locks from mm/highmem.c, Ingo Molnar, (Sun Jan 28, 8:17 am)
Re: [PATCH] mm: remove global locks from mm/highmem.c, Christoph Hellwig, (Sun Jan 28, 8:28 am)
Re: [PATCH] mm: remove global locks from mm/highmem.c, Ingo Molnar, (Sun Jan 28, 8:48 am)
Re: [PATCH] mm: remove global locks from mm/highmem.c, Christoph Hellwig, (Sun Jan 28, 8:54 am)
Re: [PATCH] mm: remove global locks from mm/highmem.c, Ingo Molnar, (Sun Jan 28, 11:19 am)
Re: [PATCH] mm: remove global locks from mm/highmem.c, Andrew Morton, (Sun Jan 28, 3:29 pm)
Re: [PATCH] mm: remove global locks from mm/highmem.c, Nick Piggin, (Sun Jan 28, 7:52 pm)
Re: [PATCH] mm: remove global locks from mm/highmem.c, Peter Zijlstra, (Mon Jan 29, 2:44 am)
Re: [PATCH] mm: remove global locks from mm/highmem.c, Ingo Molnar, (Mon Jan 29, 12:08 pm)
Re: [PATCH] mm: remove global locks from mm/highmem.c, Hugh Dickins, (Mon Jan 29, 12:19 pm)
Re: [PATCH] mm: remove global locks from mm/highmem.c, Ingo Molnar, (Mon Jan 29, 12:53 pm)
Re: [PATCH] mm: remove global locks from mm/highmem.c, Ingo Molnar, (Mon Jan 29, 1:06 pm)
Re: [PATCH] mm: remove global locks from mm/highmem.c, Martin J. Bligh, (Mon Jan 29, 6:31 pm)
Re: [PATCH] mm: remove global locks from mm/highmem.c, Andrew Morton, (Mon Jan 29, 6:41 pm)
Re: [PATCH] mm: remove global locks from mm/highmem.c, Martin J. Bligh, (Mon Jan 29, 6:49 pm)
Re: [PATCH] mm: remove global locks from mm/highmem.c, Nick Piggin, (Mon Jan 29, 7:02 pm)
Re: [PATCH] mm: remove global locks from mm/highmem.c, Andrew Morton, (Mon Jan 29, 7:15 pm)
Re: [PATCH] mm: remove global locks from mm/highmem.c, David Chinner, (Tue Jan 30, 5:44 pm)
Re: [PATCH] mm: remove global locks from mm/highmem.c, Andrew Morton, (Tue Jan 30, 6:11 pm)
Re: [PATCH] mm: remove global locks from mm/highmem.c, David Chinner, (Tue Jan 30, 8:22 pm)
Re: [PATCH] mm: remove global locks from mm/highmem.c, Christoph Hellwig, (Fri Feb 2, 5:05 am)
Re: [PATCH] mm: remove global locks from mm/highmem.c, Matt Mackall, (Fri Feb 2, 12:24 pm)
Re: [PATCH] mm: remove global locks from mm/highmem.c, David Chinner, (Fri Feb 2, 4:14 pm)
Re: [PATCH] mm: remove global locks from mm/highmem.c, David Chinner, (Fri Feb 2, 4:16 pm)