Skip to contentSkip to conversation

Recent changes (master)

PATCH Jens Axboe 1 participant 1 message Jan 26, 2016

lore
Share & tools
lore

Jens Axboe

author
#0 lore raw

The following changes since commit ab917e33e8c0353e2e17b0340e7193e7df6591b0:

Fix Windows build: define rand_r() (2016-01-22 15:24:58 -0700)

are available in the git repository at:

git://git.kernel.dk/fio.git master

for you to fetch changes up to c5dd5d977884648f78c266e9873f667a3ed98bda:

powerpc: fix cpus_online() to get correct max CPU number for powerpc64 (2016-01-25 08:29:50 -0700)

----------------------------------------------------------------
Dan Qing Zhang (1):
powerpc: fix cpus_online() to get correct max CPU number for powerpc64

 os/os.h | 8 ++++++++
 1 file changed, 8 insertions(+)

---

Diff of recent changes:

os/os.h +8 -0
index fd47f22..02ab40d 100644
@@ -343,6 +343,14 @@ static inline unsigned long long get_fs_free_size(const char *path)
 }
 #endif
 
+#ifdef __powerpc64__
+#define FIO_HAVE_CPU_ONLINE_SYSCONF
+static inline unsigned int cpus_online(void)
+{
+        return sysconf(_SC_NPROCESSORS_CONF);
+}
+#endif
+
 #ifndef FIO_HAVE_CPU_ONLINE_SYSCONF
 static inline unsigned int cpus_online(void)
 {