mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Adrian Bunk <bunk@fs.tum.de>
To: Andrew Morton <akpm@osdl.org>, rth@twiddle.net
Cc: linux-kernel@vger.kernel.org
Subject: [2.6 patch] lockmeter.h: remove kernel 2.2 #ifdef (i386 + alpha)
Date: Sun, 8 Feb 2004 02:15:31 +0100	[thread overview]
Message-ID: <20040208011531.GI7388@fs.tum.de> (raw)

The patch below removes a kernel 2.2 #ifdef from the i386 and alpha 
lockmeter.h .

Please apply
Adrian

--- linux-2.6.2-mm1/include/asm-i386/lockmeter.h.old	2004-02-08 02:12:35.000000000 +0100
+++ linux-2.6.2-mm1/include/asm-i386/lockmeter.h	2004-02-08 02:12:49.000000000 +0100
@@ -31,14 +31,6 @@
 
 #define THIS_CPU_NUMBER		smp_processor_id()
 
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,3,0)
-#define local_irq_save(x) \
-    __asm__ __volatile__("pushfl ; popl %0 ; cli":"=g" (x): /* no input */ :"memory")
-
-#define local_irq_restore(x) \
-    __asm__ __volatile__("pushl %0 ; popfl": /* no output */ :"g" (x):"memory")
-#endif	/* Linux version 2.2.x */
-
 /*
  * macros to cache and retrieve an index value inside of a spin lock
  * these macros assume that there are less than 65536 simultaneous
--- linux-2.6.2-mm1/include/asm-alpha/lockmeter.h.old	2004-02-08 02:13:13.000000000 +0100
+++ linux-2.6.2-mm1/include/asm-alpha/lockmeter.h	2004-02-08 02:13:23.000000000 +0100
@@ -16,12 +16,6 @@
 #define THIS_CPU_NUMBER		smp_processor_id()
 
 #include <linux/version.h>
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,3,0)
-#define local_irq_save(x) \
-	__save_and_cli(x)
-#define local_irq_restore(x) \
-	__restore_flags(x)
-#endif	/* Linux version 2.2.x */
 
 #define SPINLOCK_MAGIC_INIT /**/
 

                 reply	other threads:[~2004-02-08  1:17 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20040208011531.GI7388@fs.tum.de \
    --to=bunk@fs.tum.de \
    --cc=akpm@osdl.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rth@twiddle.net \
    /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®