On Tue, 2007-02-27 at 17:33 +0800, Zhang, Rui wrote: > Hello, list > > I met some problems when duplicating ACPI processor procfs interface in sysfs. > #cat /proc/acpi/processor/CPU0/limit > Active limit: P0:T0 > User limit: P0:T0 > Thermal limit: P0,T0 > > IMO, "Tx" is easy to understand. It indicates the active T-state, T-state set by user and T-state set by thermal (in passive mode). > > But what does the "Px" stand for? After reading the code in processor_thermal.c, I don't think user or thermal will change its value. > And I don't know if it's still needed when porting to sysfs. Px are P-states, this is cpufreq. Writing to it will probably interfere with /sys/devices/../cpufreq/*. x should correspond to the amount of entries in /sys/devices/../cpufreq/scaling_available_frequencies. Can't we just get rid of this? Is there any userspace prog that made use of this in /proc and if was it really useful in any way? Thomas - 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