lkml.org 
[lkml]   [2005]   [May]   [14]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Subject[PATCH] Remove unused CONFIG_LOCKMETER functions
FromKirk True <>
DateSat, 14 May 2005 00:57:54 -0700
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 <kirk@kirkandsheila.com>

diff -urpN linux-2.6.11.9/include/linux/spinlock.h linux-2.6.11.9-remove/include/linux/spinlock.h
--- linux-2.6.11.9/include/linux/spinlock.h	2005-05-11 15:42:01.000000000 -0700
+++ linux-2.6.11.9-remove/include/linux/spinlock.h	2005-05-14 00:28:04.000000000 -0700
@@ -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>
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-05-14 10:01    [from the cache]
©2003-2008