[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <87hbw6sgf9.fsf@basil.nowhere.org>
Date: Mon, 17 Aug 2009 15:44:58 +0200
From: Andi Kleen <andi@...stfloor.org>
To: mark@...feros.com
Cc: <linux-kernel@...r.kernel.org>
Subject: Re: [patch] x86 CPU detection for RDC
Mark Kelly <mark@...feros.com> writes:
> +{
> + u16 vendor, device;
> +
> + /* RDC CPU is SoC (system-on-chip), Northbridge is always present. */
> + vendor = read_pci_config_16(0, 0, 0, PCI_VENDOR_ID);
> + device = read_pci_config_16(0, 0, 0, PCI_DEVICE_ID);
This needs some check first if PCI is even enabled. You can use
early_pci_allowed() for this or just add a handler in early quirks
that sets a flag you test here.
Also I would suggest to not hard code your own email addresses
in printk (which might go away), but use some list like linux-kernel.
-Andi
--
ak@...ux.intel.com -- Speaking for myself only.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists