Skip to contentSkip to conversation

Remove unused CONFIG_LOCKMETER functions

PATCH Superseded Kirk True 2 participants 2 messages May 14, 2005 Locking primitives

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Kirk True

author
#0 lore raw

PATCH 1/1 Remove unused CONFIG_LOCKMETER functions

I'm 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 +0 -12
diff -urpN linux-2.6.11.9/include/linux/spinlock.h linux-2.6.11.9-remove/include/linux/spinlock.h
@@ -502,18 +502,6 @@ do { \
 	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>
#1 lore raw
Quoted 1 line · Kirk True

(Please wrap your emails to < 80 columns)

Quoted 1 line

I'm 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).

Ray Bryant (cc'ed here) probably has a mostly-up-to-date lockmeter patch. It would be better to work starting from that.

Quoted 3 lines

diff -urpN linux-2.6.11.9/include/linux/spinlock.h

You should work against the development kernel. We've added 22MB of diff since 2.6.11.