Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
f3643b5b
Commit
f3643b5b
authored
Sep 28, 2020
by
Rafael J. Wysocki
Browse files
Options
Browse Files
Download
Plain Diff
Merge back cpuidle material for 5.10.
parents
f49735f4
95592128
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
12 deletions
+5
-12
drivers/acpi/processor_idle.c
drivers/acpi/processor_idle.c
+1
-0
drivers/cpuidle/cpuidle-psci.c
drivers/cpuidle/cpuidle-psci.c
+2
-2
drivers/cpuidle/cpuidle.c
drivers/cpuidle/cpuidle.c
+0
-10
kernel/rcu/tree.c
kernel/rcu/tree.c
+2
-0
No files found.
drivers/acpi/processor_idle.c
View file @
f3643b5b
...
...
@@ -176,6 +176,7 @@ static void lapic_timer_propagate_broadcast(struct acpi_processor *pr) { }
static
bool
lapic_timer_needs_broadcast
(
struct
acpi_processor
*
pr
,
struct
acpi_processor_cx
*
cx
)
{
return
false
;
}
#endif
...
...
drivers/cpuidle/cpuidle-psci.c
View file @
f3643b5b
...
...
@@ -66,7 +66,7 @@ static int psci_enter_domain_idle_state(struct cpuidle_device *dev,
return
-
1
;
/* Do runtime PM to manage a hierarchical CPU toplogy. */
pm_runtime_put_sync_suspend
(
pd_dev
);
RCU_NONIDLE
(
pm_runtime_put_sync_suspend
(
pd_dev
)
);
state
=
psci_get_domain_state
();
if
(
!
state
)
...
...
@@ -74,7 +74,7 @@ static int psci_enter_domain_idle_state(struct cpuidle_device *dev,
ret
=
psci_cpu_suspend_enter
(
state
)
?
-
1
:
idx
;
pm_runtime_get_sync
(
pd_dev
);
RCU_NONIDLE
(
pm_runtime_get_sync
(
pd_dev
)
);
cpu_pm_exit
();
...
...
drivers/cpuidle/cpuidle.c
View file @
f3643b5b
...
...
@@ -142,11 +142,6 @@ static void enter_s2idle_proper(struct cpuidle_driver *drv,
time_start
=
ns_to_ktime
(
local_clock
());
/*
* trace_suspend_resume() called by tick_freeze() for the last CPU
* executing it contains RCU usage regarded as invalid in the idle
* context, so tell RCU about that.
*/
tick_freeze
();
/*
* The state used here cannot be a "coupled" one, because the "coupled"
...
...
@@ -159,11 +154,6 @@ static void enter_s2idle_proper(struct cpuidle_driver *drv,
target_state
->
enter_s2idle
(
dev
,
drv
,
index
);
if
(
WARN_ON_ONCE
(
!
irqs_disabled
()))
local_irq_disable
();
/*
* timekeeping_resume() that will be called by tick_unfreeze() for the
* first CPU executing it calls functions containing RCU read-side
* critical sections, so tell RCU about that.
*/
if
(
!
(
target_state
->
flags
&
CPUIDLE_FLAG_RCU_IDLE
))
rcu_idle_exit
();
tick_unfreeze
();
...
...
kernel/rcu/tree.c
View file @
f3643b5b
...
...
@@ -673,6 +673,7 @@ void rcu_idle_enter(void)
lockdep_assert_irqs_disabled
();
rcu_eqs_enter
(
false
);
}
EXPORT_SYMBOL_GPL
(
rcu_idle_enter
);
#ifdef CONFIG_NO_HZ_FULL
/**
...
...
@@ -886,6 +887,7 @@ void rcu_idle_exit(void)
rcu_eqs_exit
(
false
);
local_irq_restore
(
flags
);
}
EXPORT_SYMBOL_GPL
(
rcu_idle_exit
);
#ifdef CONFIG_NO_HZ_FULL
/**
...
...
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