From: Kirk True <kernel@kirkandsheila.com>
To: linux-kernel@vger.kernel.org
Subject: [PATCH] Remove unused CONFIG_LOCKMETER functions
Date: Sat, 14 May 2005 00:57:54 -0700 [thread overview]
Message-ID: <1116057474.7432.4.camel@itchy.kirkandsheila.com> (raw)
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>
next reply other threads:[~2005-05-14 7:58 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-14 7:57 Kirk True [this message]
2005-05-14 8:56 ` Andrew Morton
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1116057474.7432.4.camel@itchy.kirkandsheila.com \
--to=kernel@kirkandsheila.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®