Re: sem_lock() vs qspinlocks

From: Peter Zijlstra
Date: Fri May 20 2016 - 04:18:45 EST


On Fri, May 20, 2016 at 10:13:15AM +0200, Peter Zijlstra wrote:
> On Thu, May 19, 2016 at 10:39:26PM -0700, Davidlohr Bueso wrote:
>
> > [1] https://hg.java.net/hg/libmicro~hg-repo
>
> So far I've managed to install mercurial and clone this thing, but it
> doesn't actually build :/
>
> I'll try harder..

The stuff needs this..

---
diff -r 7dd95b416c3c Makefile.com
--- a/Makefile.com Thu Jul 26 12:56:00 2012 -0700
+++ b/Makefile.com Fri May 20 10:18:08 2016 +0200
@@ -107,7 +107,7 @@
echo "char compiler_version[] = \""`$(COMPILER_VERSION_CMD)`"\";" > tattle.h
echo "char CC[] = \""$(CC)"\";" >> tattle.h
echo "char extra_compiler_flags[] = \""$(extra_CFLAGS)"\";" >> tattle.h
- $(CC) -o tattle $(CFLAGS) -I. ../tattle.c libmicro.a -lrt -lm
+ $(CC) -o tattle $(CFLAGS) -I. ../tattle.c libmicro.a -lrt -lm -lpthread

$(ELIDED_BENCHMARKS): ../elided.c
$(CC) -o $(@) ../elided.c