implement spinlock_t without atomic_t
authorAndrew Waterman <waterman@eecs.berkeley.edu>
Sat, 15 Dec 2012 05:18:58 +0000 (21:18 -0800)
committerAndrew Waterman <waterman@eecs.berkeley.edu>
Sat, 15 Dec 2012 05:18:58 +0000 (21:18 -0800)
commitcd60e0f29e396c88c832b7009c3370a028adb1ee
treed4991995b8ccdc52b744a2594dd75717ac79c6b2
parent696645791db55402d2a1348202ffae34fdabb86e
implement spinlock_t without atomic_t

on 64b architectures, there's no reason to use a 64b var for a 1b lock
user/parlib/include/spinlock.h
user/parlib/spinlock.c