Fix perfctr on x86_64
PATCH 1/1 Fix perfctr on x86_64
Mikael -
One of Andi's pre-2.5.70 x86_64 merges converted the x86_64 APIC code to using the new driver model. This patch against perfctr-2.5.4 fixes the kernel portion of the perfctr build.
<b
# This is a BitKeeper generated patch for the following project:
# Project Name: Linux kernel tree
# This patch format is intended for GNU patch command version 2.5 or higher. # This patch includes the following deltas:
# ChangeSet 1.1441 -> 1.1442
# drivers/perfctr/x86_64.c 1.1 -> 1.2
# drivers/perfctr/x86_64_setup.c 1.1 -> 1.2
#
# The following is the BitKeeper ChangeSet Log
# --------------------------------------------
# 03/06/12 [email protected] 1.1442
# x86_64_setup.c, x86_64.c:
# perfctr: Use new driver model for x86_64.
# --------------------------------------------
#
drivers/perfctr/x86_64.c +4 -4
@@ -533,8 +533,8 @@printk ("perfctr: PM resume\n" ); } -/* XXX: x86_64 hasn't converted apic & nmi to driver model yet */ -#if 0 &&LINUX_VERSION_CODE >=KERNEL_VERSION (2 ,5 ,67 ) +/* x86_64 didn't convert apic & nmi to driver model until 2.5.70 */ +#if LINUX_VERSION_CODE >=KERNEL_VERSION (2 ,5 ,70 )#include <linux/device.h>
@@ -623,8 +623,8 @@ #ifdef NMI_LOCAL_APIC -/* XXX: x86_64 hasn't converted apic & nmi to driver model yet */ -#if 1 || LINUX_VERSION_CODE < KERNEL_VERSION(2,5,67) +/* XXX: x86_64 didn't convert apic & nmi to driver model until 2.5.70 */ +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,70) static void __init disable_lapic_nmi_watchdog(void) { #ifdef CONFIG_PM
drivers/perfctr/x86_64_setup.c +2 -2
@@ -59,8 +59,8 @@#ifdef NMI_LOCAL_APIC EXPORT_SYMBOL (nmi_perfctr_msr); -/* XXX: x86_64 hasn't converted apic & nmi to driver model yet */ -#if /*LINUX_VERSION_CODE < KERNEL_VERSION(2,5,67) &&*/ defined(CONFIG_PM ) +/* x86_64 didn't convert apic & nmi to driver model until 2.5.70 */ +#if LINUX_VERSION_CODE <KERNEL_VERSION (2 ,5 ,70 ) && defined(CONFIG_PM )EXPORT_SYMBOL (apic_pm_register);EXPORT_SYMBOL (apic_pm_unregister);EXPORT_SYMBOL (nmi_pmdev);
Quoted 5 lines · Bryan O'Sullivan
Mikael -
One of Andi's pre-2.5.70
x86_64merges converted thex86_64APIC code to using the new driver model. This patch against perfctr-2.5.4 fixes the kernel portion of the perfctr build.
Thanks. Did this happen in 2.5.70 or 2.5.70-bk? I don't remember seeing this change in the vanilla 2.5.70.
/Mikael
Quoted 2 lines · On Thu, 2003-06-12 at 15:05, [email protected] wrote:
Thanks. Did this happen in 2.5.70 or 2.5.70-bk? I don't remember seeing this change in the vanilla 2.5.70.
Oops, it's in Andi's most recent *post*-2.5.70 patch for x86_64. Those changes are in BK-current, so the version checks should be against 2.5.71, not 2.5.70.
<b