Skip to contentSkip to conversation

OProfile: correct CPU type for x86-64

PATCH Andi Kleen 1 participant 1 message Aug 31, 2003 1 message not in the archive

lore
Share & tools
lore

Andi Kleen

author
#1 lore raw
In reply to a message not in the archive

Review

Quoted 7 lines · John Levon
(quoted diff) +7 -0
+				break;
+#if defined(CONFIG_X86_64)
+			case 0xf:
+				model = &op_athlon_spec;
+				nmi_ops.cpu_type = "x86-64/hammer";
+				break;
+#endif /* CONFIG_X86_64 */

The ifdef is not needed. The case is valid for i386 too, when running an Opteron with an 32bit kernel. In that case you also want the user tools to select the Opteron events.

-Andi