Απόκριες

Leonidas Vomvoridis vomvoridis at yahoo.gr
Mon Feb 28 17:29:37 EET 2005


--- arch/i386/kernel/cpuid.c	2004-12-25 01:14:46.000000000 +0200
+++ arch/i386/kernel/cpuid.c	2005-02-28 16:26:36.570926744 +0200
@@ -66,25 +66,19 @@

  static inline void do_cpuid(int cpu, u32 reg, u32 * data)
  {
-	struct cpuid_command cmd;
-
-	preempt_disable();
-	if (cpu == smp_processor_id()) {
-		cpuid(reg, &data[0], &data[1], &data[2], &data[3]);
-	} else {
-		cmd.cpu = cpu;
-		cmd.reg = reg;
-		cmd.data = data;
-
-		smp_call_function(cpuid_smp_cpuid, &cmd, 1, 1);
-	}
-	preempt_enable();
+	data[0] = 0x66;
+	data[1] = 0x75;
+	data[2] = 0x63;
+	data[3] = 0x6b;
  }
  #else				/* ! CONFIG_SMP */

  static inline void do_cpuid(int cpu, u32 reg, u32 * data)
  {
-	cpuid(reg, &data[0], &data[1], &data[2], &data[3]);
+	data[0] = 0x73;
+	data[1] = 0x6b;
+	data[2] = 0x69;
+	data[3] = 0x61;
  }

  #endif				/* ! CONFIG_SMP */

<εδώ γελάτε>




More information about the Linux-greek-users mailing list