public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: "Jan Beulich" <jbeulich@novell.com>
To: "Thomas Gleixner" <tglx@linutronix.de>,
	"Ingo Molnar" <mingo@redhat.com>, <hpa@zytor.com>
Cc: <linux-kernel@vger.kernel.org>
Subject: [PATCH] i386: hard_{en,dis}able_TSC can be static
Date: Thu, 13 Dec 2007 08:51:02 +0000	[thread overview]
Message-ID: <47610086.76E4.0078.0@novell.com> (raw)

Signed-off-by: Jan Beulich <jbeulich@novell.com>

 arch/x86/kernel/process_32.c   |    4 ++--
 include/asm-x86/processor_32.h |    2 --
 2 files changed, 2 insertions(+), 4 deletions(-)

--- linux-2.6.24-rc5/arch/x86/kernel/process_32.c	2007-12-12 11:28:18.000000000 +0100
+++ 2.6.24-rc5-i386-seccomp-tsc-static/arch/x86/kernel/process_32.c	2007-12-04 16:09:33.000000000 +0100
@@ -573,7 +573,7 @@ int dump_task_regs(struct task_struct *t
 }
 
 #ifdef CONFIG_SECCOMP
-void hard_disable_TSC(void)
+static void hard_disable_TSC(void)
 {
 	write_cr4(read_cr4() | X86_CR4_TSD);
 }
@@ -588,7 +588,7 @@ void disable_TSC(void)
 		hard_disable_TSC();
 	preempt_enable();
 }
-void hard_enable_TSC(void)
+static void hard_enable_TSC(void)
 {
 	write_cr4(read_cr4() & ~X86_CR4_TSD);
 }
--- linux-2.6.24-rc5/include/asm-x86/processor_32.h	2007-12-12 11:29:30.000000000 +0100
+++ 2.6.24-rc5-i386-seccomp-tsc-static/include/asm-x86/processor_32.h	2007-12-04 16:09:33.000000000 +0100
@@ -222,9 +222,7 @@ extern int bootloader_type;
 
 #define HAVE_ARCH_PICK_MMAP_LAYOUT
 
-extern void hard_disable_TSC(void);
 extern void disable_TSC(void);
-extern void hard_enable_TSC(void);
 
 /*
  * Size of io_bitmap.




             reply	other threads:[~2007-12-13  8:50 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-12-13  8:51 Jan Beulich [this message]
2007-12-17 13:24 ` [PATCH] i386: hard_{en,dis}able_TSC can be static Ingo Molnar

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=47610086.76E4.0078.0@novell.com \
    --to=jbeulich@novell.com \
    --cc=hpa@zytor.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@redhat.com \
    --cc=tglx@linutronix.de \
    /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