Re: [PATCH] cpupowerutils: Add basic functions to detect AMD CPB information

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hey,

On Wed, Nov 10, 2010 at 03:56:27PM +0100, Andreas Herrmann wrote:
> To gather boost state information on AMD we need to access CPU
> northbridge PCI functions.
> 
> Thus this change introduces a dependency on libpci (part of pciutils and
> usually installed on Linux systems).

It seems acceptable to me, as long as we don't need to depend on PCI on
non-x86 systems. But it seems to me this got broken already when we added
the MSR read functions?

> Output looks like:
> 
>   # ./utils/cpufreq-info -bAnalyzing Boost Capabilities on CPU 0:

Missing line break?

> +static struct pci_access *pacc;

Do we need to worry about concurrent access?

> +++ b/lib/amdpci.h
> @@ -0,0 +1 @@
> +extern int amd_pci_get_num_boost_states(int *active, int *states);

Do we need a whole file for this one line?

Otherwise, looks really fine and acceptable to me.

Best,
	Dominik
--
To unsubscribe from this list: send the line "unsubscribe cpufreq" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel Devel]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Forum]     [Linux SCSI]

  Powered by Linux