History

governors: unify last_state_idx

Since this field is shared by all governors, move it to cpuidle device structure.

Marcelo Tosatti committed 7 years ago

Commit 7d4daee1 parent 259231a4 files · +19 −20Browse files

Showing the changes to include/linux (1 of 4 files). Show all

Unified · Split

include/linux/cpuidle.h+1−0
@@ -85,6 +85,7 @@ struct cpuidle_device { · 84 unmodified lines
85 unsigned int cpu;85 unsigned int cpu;
86 ktime_t next_hrtimer;86 ktime_t next_hrtimer;
87 87
88 int last_state_idx;
88 int last_residency;89 int last_residency;
89 u64 poll_limit_ns;90 u64 poll_limit_ns;
90 struct cpuidle_state_usage states_usage[CPUIDLE_STATE_MAX];91 struct cpuidle_state_usage states_usage[CPUIDLE_STATE_MAX];

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t