Re: [RFC PATCH 1/4] powerpc 2.6.16-rt17: to build on powerpc w/ RT
- From: Benjamin Herrenschmidt <benh@xxxxxxxxxxxxxxxxxxx>
- Date: Thu, 17 Aug 2006 06:43:21 +0200
Well, I've been wanting to look at your stuff and possibly do the
conversion for some time, provided we don't lose performances ... Our
current implementation is very optimized to avoid even memory barriers
in most cases and I doubt we'll be able to be as fine tuned using your
generic code, thus it's a tradeoff decision that we have to do. But
then, I need to look into the details before doing any final
statement :)
Ok, although do let me know if you see places where the generic code
could use any of the optimizations used in powerpc.
Difficult... but maybe. One of the main idea is that the 3 values used
for "calibration" (pre-mult offset, multiplier and post-mult offset) are
in a structure. There is an array of 2 of these and a pointer to the
"current" one. When changing those values, we update the "other" one,
wmb, then flip the pointer. The readers can then mostly be barrier-less
since there is a natural data dependency on the pointer.
Ben.
-
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/
- References:
- [RFC PATCH 1/4] powerpc 2.6.16-rt17: to build on powerpc w/ RT
- From: Tsutomu OWA
- Re: [RFC PATCH 1/4] powerpc 2.6.16-rt17: to build on powerpc w/ RT
- From: Paul Mackerras
- Re: [RFC PATCH 1/4] powerpc 2.6.16-rt17: to build on powerpc w/ RT
- From: Tsutomu OWA
- Re: [RFC PATCH 1/4] powerpc 2.6.16-rt17: to build on powerpc w/ RT
- From: john stultz
- Re: [RFC PATCH 1/4] powerpc 2.6.16-rt17: to build on powerpc w/ RT
- From: Benjamin Herrenschmidt
- Re: [RFC PATCH 1/4] powerpc 2.6.16-rt17: to build on powerpc w/ RT
- From: john stultz
- Re: [RFC PATCH 1/4] powerpc 2.6.16-rt17: to build on powerpc w/ RT
- From: Benjamin Herrenschmidt
- Re: [RFC PATCH 1/4] powerpc 2.6.16-rt17: to build on powerpc w/ RT
- From: john stultz
- [RFC PATCH 1/4] powerpc 2.6.16-rt17: to build on powerpc w/ RT
- Prev by Date: Re: New version of ClownToolKit
- Next by Date: Re: [linux-pm] [RFC][PATCH 3/3] PM: Remove PM_TRACE from Kconfig
- Previous by thread: Re: [RFC PATCH 1/4] powerpc 2.6.16-rt17: to build on powerpc w/ RT
- Next by thread: Re: [RFC PATCH 1/4] powerpc 2.6.16-rt17: to build on powerpc w/ RT
- Index(es):
Relevant Pages
|