mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] Remove unused CONFIG_LOCKMETER functions
@ 2005-05-14  7:57 Kirk True
  2005-05-14  8:56 ` Andrew Morton
  0 siblings, 1 reply; 2+ messages in thread
From: Kirk True @ 2005-05-14  7:57 UTC (permalink / raw)
  To: linux-kernel

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>


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] Remove unused CONFIG_LOCKMETER functions
  2005-05-14  7:57 [PATCH] Remove unused CONFIG_LOCKMETER functions Kirk True
@ 2005-05-14  8:56 ` Andrew Morton
  0 siblings, 0 replies; 2+ messages in thread
From: Andrew Morton @ 2005-05-14  8:56 UTC (permalink / raw)
  To: Kirk True; +Cc: linux-kernel, Ray Bryant

Kirk True <kernel@kirkandsheila.com> wrote:
>

(Please wrap your emails to < 80 columns)

> 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.

>          Signed-off-by: Kirk True <kirk@kirkandsheila.com>
> 
>  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.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-05-14  8:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-05-14  7:57 [PATCH] Remove unused CONFIG_LOCKMETER functions Kirk True
2005-05-14  8:56 ` Andrew Morton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®