Catch-up with newlib, original commit message follows:
------------------------------------------------------
This new #define will produce top results identical to
the results achieved for './configure --disable-numa'.
However it keeps the change entirely local to our top.
[ it has been introduced to test the following patch ]
Signed-off-by: Jim Warner <james.warner@comcast.net>
#ifndef PRETEND48CPU
cpuinfo();
#endif
+#ifndef PRETEND0NUMA
Numa_node_tot = numa_max_node() + 1;
+#endif
sav_secs = cur_secs;
}
} // end: sysinfo_refresh
#endif
numa_init();
+#ifndef PRETEND0NUMA
Numa_node_tot = numa_max_node() + 1;
+#endif
#ifndef SIGRTMAX // not available on hurd, maybe others too
#define SIGRTMAX 32
//#define OFF_STDERROR /* disable our stderr buffering (redirect) */
//#define OFF_STDIOLBF /* disable our own stdout _IOFBF override */
//#define OFF_XTRAWIDE /* disable our extra wide multi-byte logic */
+//#define PRETEND0NUMA /* pretend that there ain't any numa nodes */
//#define PRETEND2_5_X /* pretend we're linux 2.5.x (for IO-wait) */
//#define PRETEND48CPU /* pretend we're smp with 48 ticsers (sic) */
//#define PRETENDNOCAP /* use a terminal without essential caps */