Re: [Powertop] [PATCH] Make libpci dependency optional
Arjan van de Ven <arjan at linux.intel.com> Wed, 18 Jul 2012 08:31:15 -0700
| Newsgroups | dev.linux.lists.powertop |
|---|---|
| Message-ID | <[email protected]> |
On 7/18/2012 7:53 AM, Igor Zhbanov wrote:
> +#ifndef DISABLE_PCI
> if (strcmp(bus, "pci") == 0) {
> char filename[4096];
> uint16_t vendor = 0, device = 0;
> @@ -77,6 +79,8 @@ runtime_tunable::runtime_tunable(const char *path, const char *bus, const char *
>
>
> }
> +#endif /* !DISABLE_PCI */
and this chunk is just silly
if you don't have PCI, this code will never trigger in the first place.