Skip to contentSkip to conversation

Remove unused CONFIG_LOCKMETER functions

PATCH New Kirk True 1 participant 1 message May 16, 2005 Locking primitives

lore
Share & tools
lore

Kirk True

author
#0 lore raw

PATCH v2 1/1 Remove unused CONFIG_LOCKMETER functions

Take 2 on removing these unused extern functions...

I had been working on porting SGI's lockmeter to 2.6 when I chanced upon this. I was very perplexed that it's in there since this is the only place that it appears in the codebase (according to grep).

include/linux/spinlock.h 2005-05-16 01:23:43.000000000 -0700 renamed from include/linux/spinlock.h 2005-03-01 23:38:09.000000000 -0800 +0 -12
@@ -502,18 +502,6 @@
        1 : ({local_irq_restore(flags); 0;}); \
 })
 
-#ifdef CONFIG_LOCKMETER
-extern void _metered_spin_lock   (spinlock_t *lock);
-extern void _metered_spin_unlock (spinlock_t *lock);
-extern int  _metered_spin_trylock(spinlock_t *lock);
-extern void _metered_read_lock    (rwlock_t *lock);
-extern void _metered_read_unlock  (rwlock_t *lock);
-extern void _metered_write_lock   (rwlock_t *lock);
-extern void _metered_write_unlock (rwlock_t *lock);
-extern int  _metered_read_trylock (rwlock_t *lock);
-extern int  _metered_write_trylock(rwlock_t *lock);
-#endif
-
 /* "lock on reference count zero" */
 #ifndef ATOMIC_DEC_AND_LOCK
 #include <asm/atomic.h>