>From e4fae3b29b694a489638b00214fc41530092c3d1 Mon Sep 17 00:00:00 2001
From: Feng (Eric) Liu <[EMAIL PROTECTED]>
Date: Sat, 16 Feb 2008 03:41:17 -0500
Subject: [PATCH] kvm: Fix building error of preempt.c

current kernel code has merged the file processor_32.h and
processor_64.h
to processor.h, so remove the old code which caused building error.

Signed-off-by: Feng (Eric) Liu <[EMAIL PROTECTED]>
---
 kernel/preempt.c |   13 -------------
 1 files changed, 0 insertions(+), 13 deletions(-)

diff --git a/kernel/preempt.c b/kernel/preempt.c
index 0ae69d7..444e222 100644
--- a/kernel/preempt.c
+++ b/kernel/preempt.c
@@ -17,11 +17,7 @@ static void preempt_enable_sched_out_notifiers(void)
 {
        asm volatile ("mov %0, %%db0" : : "r"(schedule));
        asm volatile ("mov %0, %%db7" : : "r"(0x701ul));
-#ifdef CONFIG_X86_64
        current->thread.debugreg7 = 0ul;
-#else
-       current->thread.debugreg[7] = 0ul;
-#endif
 #ifdef TIF_DEBUG
        clear_tsk_thread_flag(current, TIF_DEBUG);
 #endif
@@ -31,13 +27,8 @@ static void preempt_enable_sched_in_notifiers(void *
addr)
 {
        asm volatile ("mov %0, %%db0" : : "r"(addr));
        asm volatile ("mov %0, %%db7" : : "r"(0x701ul));
-#ifdef CONFIG_X86_64
        current->thread.debugreg0 = (unsigned long) addr;
        current->thread.debugreg7 = 0x701ul;
-#else
-       current->thread.debugreg[0] = (unsigned long) addr;
-       current->thread.debugreg[7] = 0x701ul;
-#endif
 #ifdef TIF_DEBUG
        set_tsk_thread_flag(current, TIF_DEBUG);
 #endif
@@ -57,11 +48,7 @@ static void __preempt_disable_notifiers(void)
 static void preempt_disable_notifiers(void)
 {
        __preempt_disable_notifiers();
-#ifdef CONFIG_X86_64
        current->thread.debugreg7 = 0ul;
-#else
-       current->thread.debugreg[7] = 0ul;
-#endif
 #ifdef TIF_DEBUG
        clear_tsk_thread_flag(current, TIF_DEBUG);
 #endif
-- 
1.5.1
--Eric (Liu, Feng)

Attachment: 0001-kvm-Fix-building-error-of-preempt.c.patch
Description: 0001-kvm-Fix-building-error-of-preempt.c.patch

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
kvm-devel mailing list
kvm-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/kvm-devel

Reply via email to