[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20070228142554.GE19452@amd.com>
Date: Wed, 28 Feb 2007 15:25:54 +0100
From: "Joerg Roedel" <joerg.roedel@....com>
To: discuss@...-64.org
cc: "Andi Kleen" <ak@...e.de>, linux-kernel@...r.kernel.org
Subject: [PATCH 4/4] optimize and simplify get_cycles_sync()
From: Joerg Roedel <joerg.roedel@....com>
This patch simplifies the get_cycles_sync() function by removing the
#ifdefs from it. Further it introduces an optimization for AMD
processors. There the RDTSCP instruction is used instead of CPUID;RDTSC
which is helpfull if the kernel runs as a KVM guest. Running as a guest
makes CPUID very expensive because it causes an intercept of the guest.
Signed-off-by: Joerg Roedel <joerg.roedel@....com>
--
Joerg Roedel
Operating System Research Center
AMD Saxony LLC & Co. KG
View attachment "optimized-get_cycles_sync.patch" of type "text/plain" (1606 bytes)
Powered by blists - more mailing lists