Thermal Framework Maintaince
Based on thm-framework-
Within the existing thermal framework, there are two main files that perform base functionality - thermal.c and thermal_sys.c. There are also /platform/arch specific files that map specific platforms thermal zones and cooling devices together. These files are created as system drivers. thermal.c, however, is in /acpi/drivers and provides the acpi hooks from the BIOS to thermal_sys.c, along with providing for the base algorithm to determine if a device is heating up or not. We will need to create a separate driver that abstracts to thermal_sys.c the same functionality thermal.c is providing, but be tied directly to on-die or system hardware. In ARM based-systems, since there is no acpi and the arch specific temp sensors of the existing thermal framework are kept in the /platform/arch specific directories, a decision will need to be made on how best to abstract out (or include at all) an equivalent thermal.c file, or simply tie directly to the /platform/arch specific temp sensors and cooling devices.
Blueprint information
- Status:
- Complete
- Approver:
- Amit Kucheria
- Priority:
- High
- Drafter:
- Steve Jahnke
- Direction:
- Approved
- Assignee:
- Steve Jahnke
- Definition:
- Review
- Series goal:
- Accepted for trunk
- Implementation:
- Implemented
- Milestone target:
- 2011.09
- Started by
- Amit Kucheria
- Completed by
- Amit Kucheria
Related branches
Related bugs
Sprints
Whiteboard
RESULT:
Each driver that is to connect to the thermal framework will have its own thermal framework driver; it will not need to create a hwmon driver first that is then read by thermal framework.
The thermal framework has 3 major components, the core (which contains the framework logic and governor), thermal sensor drivers and cooling devices. For upstream integration, the framework is kept in a staging directory. The framework core and governor is located in drivers/
Work Items
Work items:
[sjahnke] Define driver placement: DONE
[sjahnke] Define thermal framework core directory structure: DONE
[sjahnke] Define thermal framework governor directory structure: DONE
Dependency tree
* Blueprints in grey have been implemented.