Remove unused CONFIG_LOCKMETER functions
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).
Signed-off-by Kirk True <[email protected]>
include/linux/spinlock.h +0 -12
@@ -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>
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
Signed-off-by Kirk True <[email protected]>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.