- use-correct-macros-in-raid-code-not-raw-asm.patch removed from -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled
     Use correct macros in raid code, not raw asm
has been removed from the -mm tree.  Its filename was
     use-correct-macros-in-raid-code-not-raw-asm.patch

This patch was dropped because an updated version will be merged

------------------------------------------------------
Subject: Use correct macros in raid code, not raw asm
From: Rusty Russell <rusty@xxxxxxxxxxxxxxx>

This make sure it's paravirtualized correctly when CONFIG_PARAVIRT=y.

Signed-off-by: Rusty Russell <rusty@xxxxxxxxxxxxxxx>
Cc: Andi Kleen <ak@xxxxxx>
Cc: Ingo Molnar <mingo@xxxxxxx>
Cc: Neil Brown <neilb@xxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---

 drivers/md/raid6x86.h |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff -puN drivers/md/raid6x86.h~use-correct-macros-in-raid-code-not-raw-asm drivers/md/raid6x86.h
--- a/drivers/md/raid6x86.h~use-correct-macros-in-raid-code-not-raw-asm
+++ a/drivers/md/raid6x86.h
@@ -21,6 +21,8 @@
 
 #if defined(__i386__) || defined(__x86_64__)
 
+#include <asm/system.h>
+
 #ifdef __x86_64__
 
 typedef struct {
@@ -75,13 +77,14 @@ static inline unsigned long raid6_get_fp
 	unsigned long cr0;
 
 	preempt_disable();
-	asm volatile("mov %%cr0,%0 ; clts" : "=r" (cr0));
+	cr0 = read_cr0();
+	clts();
 	return cr0;
 }
 
 static inline void raid6_put_fpu(unsigned long cr0)
 {
-	asm volatile("mov %0,%%cr0" : : "r" (cr0));
+	write_cr0(cr0);
 	preempt_enable();
 }
 
_

Patches currently in -mm which might be from rusty@xxxxxxxxxxxxxxx are

use-correct-macros-in-raid-code-not-raw-asm.patch
vmi-versus-hrtimers.patch
hotplug-allow-modules-to-use-the-cpu-hotplug-notifiers.patch

-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux