Re: [PATCH 5/5] ACPI/CPPC: add sysfs support to compute delivered performance

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

 



Hi Alexey,
>> +
>> +static ssize_t show_reference_perf(struct kobject *kobj,
>> +		struct attribute *attr, char *buf)
>> +{
>> +	struct cpc_desc *cpc_ptr = to_cpc_desc(kobj);
>> +	struct cppc_perf_caps perf_caps;
>> +
>> +	cppc_get_perf_caps(cpc_ptr->cpu_id, &perf_caps);
>> +
>> +	if (perf_caps.reference_perf)
>> +		return scnprintf(buf, PAGE_SIZE, "%u\n",
>> +				perf_caps.reference_perf);
>> +
>> +	return scnprintf(buf, PAGE_SIZE, "%u\n",
>> +			perf_caps.nominal_perf);
>> +}
> What do you think about exporting Counter Wraparound Time register
> as well if it's present?

Yes, that's a good point. I will add it in the next version.

Thanks,
Prashanth

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



[Index of Archives]     [Linux IBM ACPI]     [Linux Power Management]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]

  Powered by Linux