mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
nohz: Convert a few places to use local per cpu accesses
A few functions use remote per CPU access APIs when they deal with local values. Just do the right conversion to improve performance, code readability and debug checks. While at it, lets extend some of these function names with *_this_cpu() suffix in order to display their purpose more clearly. Signed-off-by: Frederic Weisbecker <[email protected]> Cc: Thomas Gleixner <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Oleg Nesterov <[email protected]> Cc: Steven Rostedt <[email protected]>
This commit is contained in:
parent
dc1ccc4815
commit
e8fcaa5c54
5 changed files with 25 additions and 34 deletions
|
|
@ -311,8 +311,6 @@ asmlinkage void do_softirq(void)
|
|||
*/
|
||||
void irq_enter(void)
|
||||
{
|
||||
int cpu = smp_processor_id();
|
||||
|
||||
rcu_irq_enter();
|
||||
if (is_idle_task(current) && !in_interrupt()) {
|
||||
/*
|
||||
|
|
@ -320,7 +318,7 @@ void irq_enter(void)
|
|||
* here, as softirq will be serviced on return from interrupt.
|
||||
*/
|
||||
local_bh_disable();
|
||||
tick_check_idle(cpu);
|
||||
tick_check_idle();
|
||||
_local_bh_enable();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue