Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=b2983f10f87423fab92326bbe1e92e2256573d4f
Commit:     b2983f10f87423fab92326bbe1e92e2256573d4f
Parent:     8aa55591bfea25c441117e82711cbfd7c274250a
Author:     Thierry Vignaud <[EMAIL PROTECTED]>
AuthorDate: Wed Apr 25 15:31:30 2007 -0400
Committer:  Len Brown <[EMAIL PROTECTED]>
CommitDate: Wed Apr 25 15:31:30 2007 -0400

    ACPI: prevent ACPI quirk warning mass spamming in logs
    
    The following patch prevent this warning to be displayed again & again (eg:
    nine times on my NForce2 motherboard) and thus improve signal to noise
    ratio in logs.
    
    The ATI quirk below probably needs a similar "fix" but I don't have
    the hardware to test.
    
    Btw arch/x86_64/kernel/early-quirks.c::nvidia_bugs() would probably need to
    be synced (but I don't have an x86_64 NVidia motherboard to boot test it).
    Still it shows the usefullity of the recent x86 merge thread.
    
    [EMAIL PROTECTED]: cleanup]
    Signed-off-by: Thierry Vignaud <[EMAIL PROTECTED]>
    Signed-off-by: Andi Kleen <[EMAIL PROTECTED]>
    Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
    Signed-off-by: Len Brown <[EMAIL PROTECTED]>
---
 arch/i386/kernel/acpi/earlyquirk.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/arch/i386/kernel/acpi/earlyquirk.c 
b/arch/i386/kernel/acpi/earlyquirk.c
index a7d22d9..fa3255a 100644
--- a/arch/i386/kernel/acpi/earlyquirk.c
+++ b/arch/i386/kernel/acpi/earlyquirk.c
@@ -22,11 +22,14 @@ static int __init nvidia_hpet_check(struct 
acpi_table_header *header)
 
 static int __init check_bridge(int vendor, int device)
 {
+       static int warned;
 #ifdef CONFIG_ACPI
        /* According to Nvidia all timer overrides are bogus unless HPET
           is enabled. */
        if (!acpi_use_timer_override && vendor == PCI_VENDOR_ID_NVIDIA) {
-               if (acpi_table_parse(ACPI_SIG_HPET, nvidia_hpet_check)) {
+               if (!warned && acpi_table_parse(ACPI_SIG_HPET,
+                                               nvidia_hpet_check)) {
+                       warned = 1;
                        acpi_skip_timer_override = 1;
                          printk(KERN_INFO "Nvidia board "
                        "detected. Ignoring ACPI "
-
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

Reply via email to