From ae9c0b811eb3c3d9fd211492bf822faf1dfac872 Mon Sep 17 00:00:00 2001 From: Sam Ravnborg Date: Fri, 20 Jul 2007 22:36:56 +0200 Subject: [PATCH] --- yaml --- r: 62919 b: refs/heads/master c: 8d8d8289df65cb116d2721becafb37272074f25a h: refs/heads/master i: 62917: a86fa2f3ffb152dd84e30bcc9fdbfe5f34f94193 62915: d4f25a5b88716a16078b2f9e26808220c4391b46 62911: 00e8fd39224dba3e43c806469169d3909d05067b v: v3 --- [refs] | 2 +- trunk/arch/i386/boot/apm.c | 7 +++---- trunk/arch/i386/boot/main.c | 16 ++++++++-------- trunk/include/asm-i386/bootparam.h | 9 ++++----- trunk/include/asm-i386/ist.h | 10 ++++------ trunk/include/asm-x86_64/ist.h | 1 - trunk/include/linux/apm_bios.h | 20 +++++++++----------- trunk/scripts/Makefile.modpost | 19 ++++++++++--------- trunk/scripts/mod/modpost.c | 13 ++++++++++--- 9 files changed, 49 insertions(+), 48 deletions(-) delete mode 100644 trunk/include/asm-x86_64/ist.h diff --git a/[refs] b/[refs] index 3f30fb79b4ff..991aaf476267 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 4bf3b0bc3e98f77de88b336fd8d673649601b557 +refs/heads/master: 8d8d8289df65cb116d2721becafb37272074f25a diff --git a/trunk/arch/i386/boot/apm.c b/trunk/arch/i386/boot/apm.c index eab50c55a3a5..a34087c370c0 100644 --- a/trunk/arch/i386/boot/apm.c +++ b/trunk/arch/i386/boot/apm.c @@ -40,15 +40,14 @@ int query_apm_bios(void) if (bx != 0x504d) /* "PM" signature */ return -1; - if (!(cx & 0x02)) /* 32 bits supported? */ + if (cx & 0x02) /* 32 bits supported? */ return -1; /* Disconnect first, just in case */ ax = 0x5304; - bx = 0; asm volatile("pushl %%ebp ; int $0x15 ; popl %%ebp" - : "+a" (ax), "+b" (bx) - : : "ecx", "edx", "esi", "edi"); + : "+a" (ax) + : : "ebx", "ecx", "edx", "esi", "edi"); /* Paranoia */ ebx = esi = 0; diff --git a/trunk/arch/i386/boot/main.c b/trunk/arch/i386/boot/main.c index 0eeef3989a17..7f01f96c4fb8 100644 --- a/trunk/arch/i386/boot/main.c +++ b/trunk/arch/i386/boot/main.c @@ -73,15 +73,15 @@ static void keyboard_set_repeat(void) } /* - * Get Intel SpeedStep (IST) information. + * Get Intel SpeedStep IST information. */ -static void query_ist(void) +static void query_speedstep_ist(void) { asm("int $0x15" - : "=a" (boot_params.ist_info.signature), - "=b" (boot_params.ist_info.command), - "=c" (boot_params.ist_info.event), - "=d" (boot_params.ist_info.perf_level) + : "=a" (boot_params.speedstep_info[0]), + "=b" (boot_params.speedstep_info[1]), + "=c" (boot_params.speedstep_info[2]), + "=d" (boot_params.speedstep_info[3]) : "a" (0x0000e980), /* IST Support */ "d" (0x47534943)); /* Request value */ } @@ -144,8 +144,8 @@ void main(void) query_voyager(); #endif - /* Query Intel SpeedStep (IST) information */ - query_ist(); + /* Query SpeedStep IST information */ + query_speedstep_ist(); /* Query APM information */ #if defined(CONFIG_APM) || defined(CONFIG_APM_MODULE) diff --git a/trunk/include/asm-i386/bootparam.h b/trunk/include/asm-i386/bootparam.h index b91b01783e4b..427d8652bfde 100644 --- a/trunk/include/asm-i386/bootparam.h +++ b/trunk/include/asm-i386/bootparam.h @@ -4,9 +4,8 @@ #include #include #include -#include #include -#include +#include #include