Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
4538fad5
Commit
4538fad5
authored
Oct 22, 2008
by
Len Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'cpuidle' into test
parents
ebd7e45f
89cedfef
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
1 deletion
+12
-1
arch/x86/Kconfig
arch/x86/Kconfig
+3
-0
drivers/acpi/processor_idle.c
drivers/acpi/processor_idle.c
+1
-0
drivers/cpuidle/cpuidle.c
drivers/cpuidle/cpuidle.c
+8
-1
No files found.
arch/x86/Kconfig
View file @
4538fad5
...
...
@@ -123,6 +123,9 @@ config GENERIC_TIME_VSYSCALL
config ARCH_HAS_CPU_RELAX
def_bool y
config ARCH_HAS_DEFAULT_IDLE
def_bool y
config ARCH_HAS_CACHE_LINE_SIZE
def_bool y
...
...
drivers/acpi/processor_idle.c
View file @
4538fad5
...
...
@@ -1587,6 +1587,7 @@ static int acpi_idle_enter_bm(struct cpuidle_device *dev,
if
(
acpi_idle_bm_check
())
{
if
(
dev
->
safe_state
)
{
dev
->
last_state
=
dev
->
safe_state
;
return
dev
->
safe_state
->
enter
(
dev
,
dev
->
safe_state
);
}
else
{
local_irq_disable
();
...
...
drivers/cpuidle/cpuidle.c
View file @
4538fad5
...
...
@@ -56,7 +56,11 @@ static void cpuidle_idle_call(void)
if
(
pm_idle_old
)
pm_idle_old
();
else
#if defined(CONFIG_ARCH_HAS_DEFAULT_IDLE)
default_idle
();
#else
local_irq_enable
();
#endif
return
;
}
...
...
@@ -67,8 +71,11 @@ static void cpuidle_idle_call(void)
target_state
=
&
dev
->
states
[
next_state
];
/* enter the state and update stats */
dev
->
last_residency
=
target_state
->
enter
(
dev
,
target_state
);
dev
->
last_state
=
target_state
;
dev
->
last_residency
=
target_state
->
enter
(
dev
,
target_state
);
if
(
dev
->
last_state
)
target_state
=
dev
->
last_state
;
target_state
->
time
+=
(
unsigned
long
long
)
dev
->
last_residency
;
target_state
->
usage
++
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment