ACPI: Update the t-state for every affected cpu when t-state is changed
authorZhao Yakui <yakui.zhao@intel.com>
Mon, 28 Jan 2008 05:55:56 +0000 (13:55 +0800)
committerLen Brown <len.brown@intel.com>
Sat, 2 Feb 2008 07:31:43 +0000 (02:31 -0500)
commit33a2a529f7a2fb481812b99737176628fda457b0
treea781c01302cc78f96118e4bb393d4543e0e2b390
parente4aa5cb2138e7423a6edef6a76a3837b94c2f107
ACPI: Update the t-state for every affected cpu when t-state is changed

According to ACPI spec, the _TSD object provides T-state control cross
logical processor dependency information to OSPM. So the t-state
coordination should be considered when T-state for one cpu is changed.

According to ACPI spec, three types of coordination are defined.
SW_ALL, SW_ANY and HW_ALL.

SW_ALL: it means that OSPM needs to initiate T-state transition on
all processors in the domain. It is necessary to call throttling set function
for all affected cpus.

SW_ANY: it means that OSPM may initiate T-state transition on any processor in
the domain.

HW_ALL: Spec only says that hardware will perform the coordination and doesn't
recommend how OSPM coordinate T-state among the affected cpus. So it is treated
as the type of SW_ALL. It means that OSPM needs to initiate t-state transition
on all the processors in the domain.

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/processor_throttling.c