- x86_64-change-assembly-to-use-regular-cpuid_count-macro.patch removed from -mm tree

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

 



The patch titled

     x86_64: Change assembly to use regular cpuid_count macro

has been removed from the -mm tree.  Its filename is

     x86_64-change-assembly-to-use-regular-cpuid_count-macro.patch

This patch was probably dropped from -mm because
it has now been merged into a subsystem tree or
into Linus's tree, or because it was folded into
its parent patch in the -mm tree.

------------------------------------------------------
Subject: x86_64: Change assembly to use regular cpuid_count macro
From: Rohit Seth <rohitseth@xxxxxxxxxx>


Minor cleanup:

Replacing the asm statement with cpuid_count macro(which already provides
the same functionality).

Signed-off-by: Rohit Seth <rohitseth@xxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxx>
---

 arch/x86_64/kernel/setup.c |    7 ++-----
 1 files changed, 2 insertions(+), 5 deletions(-)

diff -puN arch/x86_64/kernel/setup.c~x86_64-change-assembly-to-use-regular-cpuid_count-macro arch/x86_64/kernel/setup.c
--- 25/arch/x86_64/kernel/setup.c~x86_64-change-assembly-to-use-regular-cpuid_count-macro	Wed May 24 16:32:20 2006
+++ 25-akpm/arch/x86_64/kernel/setup.c	Wed May 24 16:32:20 2006
@@ -1053,15 +1053,12 @@ static void __cpuinit detect_ht(struct c
  */
 static int __cpuinit intel_num_cpu_cores(struct cpuinfo_x86 *c)
 {
-	unsigned int eax;
+	unsigned int eax, t;
 
 	if (c->cpuid_level < 4)
 		return 1;
 
-	__asm__("cpuid"
-		: "=a" (eax)
-		: "0" (4), "c" (0)
-		: "bx", "dx");
+	cpuid_count(4, 0, &eax, &t, &t, &t);
 
 	if (eax & 0x1f)
 		return ((eax >> 26) + 1);
_

Patches currently in -mm which might be from rohitseth@xxxxxxxxxx are

i386-moving-phys_proc_id-and-cpu_core_id-to-cpuinfo_x86.patch
i386-moving-phys_proc_id-and-cpu_core_id-to-cpuinfo_x86-warning-fix.patch
i386-fix-get_segment_eip-with-vm86.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