forked from Imagelibrary/binutils-gdb
gprofng: Use __x86_64__ instead of __x86_64
With some compilers, only __x86_64__ is defined so use that instead of __x86_64. gprofng/ChangeLog 2025-05-30 Andrew Pinski <quic_apinski@quicinc.com> * common/core_pcbe.c: s/__x86_64/__x86_64__/. * common/cpu_frequency.h: Likewise. * common/cpuid.c: Likewise. * common/gp-defs.h: Likewise. * common/hwctable.c: Likewise. * libcollector/libcol-i386-dis.c: Likewise. * libcollector/libcol_util.h: Likewise. Signed-off-by: Andrew Pinski <quic_apinski@quicinc.com>
This commit is contained in:
@@ -41,7 +41,7 @@ extern "C"
|
||||
#define COL_CPUFREQ_SCALING 0x0001
|
||||
#define COL_CPUFREQ_TURBO 0x0002
|
||||
|
||||
#if defined(__i386__) || defined(__x86_64)
|
||||
#if defined(__i386__) || defined(__x86_64__)
|
||||
// XXXX This is a rough table to estimate frequency increment due to intel turbo boost.
|
||||
// CPU with different stepping and different core number have different turbo increment.
|
||||
// It is used internally here, and is not implemented on SPARC
|
||||
@@ -129,7 +129,7 @@ extern "C"
|
||||
{
|
||||
char temp[1024];
|
||||
int cpu = -1;
|
||||
#if defined(__i386__) || defined(__x86_64)
|
||||
#if defined(__i386__) || defined(__x86_64__)
|
||||
int model = -1;
|
||||
int family = -1;
|
||||
#endif
|
||||
@@ -140,7 +140,7 @@ extern "C"
|
||||
char *val = strchr (temp, ':');
|
||||
cpu = val ? atoi (val + 1) : -1;
|
||||
}
|
||||
#if defined(__i386__) || defined(__x86_64)
|
||||
#if defined(__i386__) || defined(__x86_64__)
|
||||
else if (strncmp (temp, "model", strlen ("model")) == 0
|
||||
&& strstr (temp, "name") == 0)
|
||||
{
|
||||
@@ -241,7 +241,7 @@ extern "C"
|
||||
frequency_scaling = 1;
|
||||
if (tmpmhz > 1000)
|
||||
{
|
||||
#if defined(__i386__) || defined(__x86_64)
|
||||
#if defined(__i386__) || defined(__x86_64__)
|
||||
if (family == 6)
|
||||
{
|
||||
// test turbo mode
|
||||
|
||||
Reference in New Issue
Block a user