diff options
author | Thomas Gleixner <[email protected]> | 2016-11-22 17:57:14 +0000 |
---|---|---|
committer | Zhang Rui <[email protected]> | 2016-11-30 10:25:41 +0800 |
commit | 556238e45c8deacb665fbee3944201b65cead594 (patch) | |
tree | bbfabe76bc26a636a8503555099da3b82b49f638 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | 411bb3835f473d1b50676b31abb16f1a464ea7e3 (diff) |
thermal/x86_pkg_temp: Sanitize package management
Packages are kept in a list, which must be searched over and over.
We can be smarter than that and just store the package pointers in an array
which is allocated at init time. Sizing of the array is determined from the
topology information. That makes the package search a simple array lookup.
Signed-off-by: Thomas Gleixner <[email protected]>
Tested-by: Srinivas Pandruvada <[email protected]>
Signed-off-by: Zhang Rui <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions