Re: [rfc 37/45] x86_64: Support for fast per cpu operations

2007-11-19 Thread Andi Kleen
On Tuesday 20 November 2007 03:19, H. Peter Anvin wrote: > David Miller wrote: > >> There was, at some point, discussion about using the gcc TLS mechanism, > >> which should permit even better code to be generated. Unfortunately, it > >> would require gcc to be able to reference %gs instead of

Re: [rfc 37/45] x86_64: Support for fast per cpu operations

2007-11-19 Thread Paul Mackerras
H. Peter Anvin writes: > There was, at some point, discussion about using the gcc TLS mechanism, > which should permit even better code to be generated. Unfortunately, it > would require gcc to be able to reference %gs instead of %fs (and vice > versa for i386), which I don't think is

Re: [rfc 37/45] x86_64: Support for fast per cpu operations

2007-11-19 Thread H. Peter Anvin
David Miller wrote: There was, at some point, discussion about using the gcc TLS mechanism, which should permit even better code to be generated. Unfortunately, it would require gcc to be able to reference %gs instead of %fs (and vice versa for i386), which I don't think is available in

Re: [rfc 37/45] x86_64: Support for fast per cpu operations

2007-11-19 Thread David Miller
From: "H. Peter Anvin" <[EMAIL PROTECTED]> Date: Mon, 19 Nov 2007 18:00:23 -0800 > Christoph Lameter wrote: > > Support fast cpu ops in x86_64 by providing a series of functions that > > generate the proper instructions. Define CONFIG_FAST_CPU_OPS so that core > > code > > can exploit the

Re: [rfc 37/45] x86_64: Support for fast per cpu operations

2007-11-19 Thread H. Peter Anvin
Christoph Lameter wrote: On Mon, 19 Nov 2007, H. Peter Anvin wrote: There was, at some point, discussion about using the gcc TLS mechanism, which should permit even better code to be generated. Unfortunately, it would How would that be possible? Oh. You mean the discussion where I mentioned

Re: [rfc 37/45] x86_64: Support for fast per cpu operations

2007-11-19 Thread Christoph Lameter
On Mon, 19 Nov 2007, H. Peter Anvin wrote: > There was, at some point, discussion about using the gcc TLS mechanism, which > should permit even better code to be generated. Unfortunately, it would How would that be possible? Oh. You mean the discussion where I mentioned using the thread

Re: [rfc 37/45] x86_64: Support for fast per cpu operations

2007-11-19 Thread H. Peter Anvin
Christoph Lameter wrote: Support fast cpu ops in x86_64 by providing a series of functions that generate the proper instructions. Define CONFIG_FAST_CPU_OPS so that core code can exploit the availability of fast per cpu operations. Signed-off-by: Christoph Lameter <[EMAIL PROTECTED]> There

Re: [rfc 37/45] x86_64: Support for fast per cpu operations

2007-11-19 Thread H. Peter Anvin
Christoph Lameter wrote: Support fast cpu ops in x86_64 by providing a series of functions that generate the proper instructions. Define CONFIG_FAST_CPU_OPS so that core code can exploit the availability of fast per cpu operations. Signed-off-by: Christoph Lameter [EMAIL PROTECTED] There was,

Re: [rfc 37/45] x86_64: Support for fast per cpu operations

2007-11-19 Thread Christoph Lameter
On Mon, 19 Nov 2007, H. Peter Anvin wrote: There was, at some point, discussion about using the gcc TLS mechanism, which should permit even better code to be generated. Unfortunately, it would How would that be possible? Oh. You mean the discussion where I mentioned using the thread

Re: [rfc 37/45] x86_64: Support for fast per cpu operations

2007-11-19 Thread H. Peter Anvin
Christoph Lameter wrote: On Mon, 19 Nov 2007, H. Peter Anvin wrote: There was, at some point, discussion about using the gcc TLS mechanism, which should permit even better code to be generated. Unfortunately, it would How would that be possible? Oh. You mean the discussion where I mentioned

Re: [rfc 37/45] x86_64: Support for fast per cpu operations

2007-11-19 Thread David Miller
From: H. Peter Anvin [EMAIL PROTECTED] Date: Mon, 19 Nov 2007 18:00:23 -0800 Christoph Lameter wrote: Support fast cpu ops in x86_64 by providing a series of functions that generate the proper instructions. Define CONFIG_FAST_CPU_OPS so that core code can exploit the availability of

Re: [rfc 37/45] x86_64: Support for fast per cpu operations

2007-11-19 Thread H. Peter Anvin
David Miller wrote: There was, at some point, discussion about using the gcc TLS mechanism, which should permit even better code to be generated. Unfortunately, it would require gcc to be able to reference %gs instead of %fs (and vice versa for i386), which I don't think is available in

Re: [rfc 37/45] x86_64: Support for fast per cpu operations

2007-11-19 Thread Paul Mackerras
H. Peter Anvin writes: There was, at some point, discussion about using the gcc TLS mechanism, which should permit even better code to be generated. Unfortunately, it would require gcc to be able to reference %gs instead of %fs (and vice versa for i386), which I don't think is available

Re: [rfc 37/45] x86_64: Support for fast per cpu operations

2007-11-19 Thread Andi Kleen
On Tuesday 20 November 2007 03:19, H. Peter Anvin wrote: David Miller wrote: There was, at some point, discussion about using the gcc TLS mechanism, which should permit even better code to be generated. Unfortunately, it would require gcc to be able to reference %gs instead of %fs (and