]> rtime.felk.cvut.cz Git - coffee/buildroot.git/commit
iozone: add fix for missing pthread_setaffinity_np()
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sun, 29 Dec 2013 17:03:55 +0000 (18:03 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Tue, 31 Dec 2013 11:38:33 +0000 (12:38 +0100)
commit8bc28f5be004d9c3bc033b2bc394e5b92c942d38
treee9bbb4ca3e070cbece7beac1310c0e855b223d29
parent771772bb97ce1c780a0e5b6acb0426e2a1b9ccf3
iozone: add fix for missing pthread_setaffinity_np()

The iozone code uses the pthread_setaffinity_np() function, but with
uClibc this function is only available when the NPTL thread
implementation is used. Some architectures, such as AVR32 and ARC do
not support the NPTL thread implementation, and therefore lack the
pthread_setaffinity_np() function.

This commit adds a patch that provides an empty implementation of
pthread_setaffinity_np() when we're using uClibc, but not with the
NPTL thread implementation. The reasoning is that there is a very high
chance that the few architectures that do not implement NPTL are
non-SMP architectures, and therefore setting the affinity is not very
useful.

In addition to this, this commit:

 * Renames the existing patch to use a sequence number, in order to
   guarantee a proper ordering when applying patches.

 * Removes the Kconfig dependency on !uClibc 0.9.31, which was
   introduced to prevent AVR32 from failing due to the
   pthread_setaffinity_np(). This conditional is no longer necessary
   due to the new patch, and the conditional was anyway not completely
   working since it was not taking into account the case of external
   toolchains.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/iozone/Config.in
package/iozone/iozone-01-targets.patch [moved from package/iozone/iozone-targets.patch with 100% similarity]
package/iozone/iozone-02-no-nptl-support.patch [new file with mode: 0644]