Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b2983f10 authored by Thierry Vignaud's avatar Thierry Vignaud Committed by Len Brown
Browse files

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.

[akpm@linux-foundation.org: cleanup]
Signed-off-by: default avatarThierry Vignaud <tvignaud@mandriva.com>
Signed-off-by: default avatarAndi Kleen <ak@suse.de>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLen Brown <len.brown@intel.com>
parent 8aa55591
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -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 "