Gitweb:
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=55e337345df892d592bbd9050cbd1fc0c6feb069
Commit: 55e337345df892d592bbd9050cbd1fc0c6feb069
Parent: 474a14df3fce60bebde64d25c6adbdab7d30594a
Author: Jean Delvare <[EMAIL PROTECTED]>
AuthorDate: Thu Nov 9 18:29:35 2006 +0100
Committer: Dave Jones <[EMAIL PROTECTED]>
CommitDate: Tue Dec 12 17:20:49 2006 -0500
[CPUFREQ] Optimize gx-suspmod revision ID fetching
We don't need a temporary variable to get the PCI revision ID.
Signed-off-by: Jean Delvare <[EMAIL PROTECTED]>
Signed-off-by: Dave Jones <[EMAIL PROTECTED]>
---
arch/i386/kernel/cpu/cpufreq/gx-suspmod.c | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
diff --git a/arch/i386/kernel/cpu/cpufreq/gx-suspmod.c
b/arch/i386/kernel/cpu/cpufreq/gx-suspmod.c
index 0b9cc8a..6667e9c 100644
--- a/arch/i386/kernel/cpu/cpufreq/gx-suspmod.c
+++ b/arch/i386/kernel/cpu/cpufreq/gx-suspmod.c
@@ -447,7 +447,6 @@ static int __init cpufreq_gx_init(void)
int ret;
struct gxfreq_params *params;
struct pci_dev *gx_pci;
- u32 class_rev;
/* Test if we have the right hardware */
if ((gx_pci = gx_detect_chipset()) == NULL)
@@ -472,8 +471,7 @@ static int __init cpufreq_gx_init(void)
pci_read_config_byte(params->cs55x0, PCI_PMER2, &(params->pci_pmer2));
pci_read_config_byte(params->cs55x0, PCI_MODON, &(params->on_duration));
pci_read_config_byte(params->cs55x0, PCI_MODOFF,
&(params->off_duration));
- pci_read_config_dword(params->cs55x0, PCI_CLASS_REVISION, &class_rev);
- params->pci_rev = class_rev & 0xff;
+ pci_read_config_byte(params->cs55x0, PCI_REVISION_ID, ¶ms->pci_rev);
if ((ret = cpufreq_register_driver(&gx_suspmod_driver))) {
kfree(params);
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html