Release 4.14 arch/sh/kernel/idle.c
/*
* The idle loop for all SuperH platforms.
*
* Copyright (C) 2002 - 2009 Paul Mundt
*
* This file is subject to the terms and conditions of the GNU General Public
* License. See the file "COPYING" in the main directory of this archive
* for more details.
*/
#include <linux/module.h>
#include <linux/init.h>
#include <linux/mm.h>
#include <linux/pm.h>
#include <linux/tick.h>
#include <linux/preempt.h>
#include <linux/thread_info.h>
#include <linux/irqflags.h>
#include <linux/smp.h>
#include <linux/atomic.h>
#include <asm/pgalloc.h>
#include <asm/smp.h>
#include <asm/bl_bit.h>
static void (*sh_idle)(void);
void default_idle(void)
{
set_bl_bit();
local_irq_enable();
/* Isn't this racy ? */
cpu_sleep();
clear_bl_bit();
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Paul Mundt | 19 | 95.00% | 3 | 75.00% |
Thomas Gleixner | 1 | 5.00% | 1 | 25.00% |
Total | 20 | 100.00% | 4 | 100.00% |
void arch_cpu_idle_dead(void)
{
play_dead();
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Paul Mundt | 8 | 80.00% | 2 | 66.67% |
Thomas Gleixner | 2 | 20.00% | 1 | 33.33% |
Total | 10 | 100.00% | 3 | 100.00% |
void arch_cpu_idle(void)
{
sh_idle();
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Thomas Gleixner | 6 | 60.00% | 1 | 25.00% |
Paul Mundt | 3 | 30.00% | 2 | 50.00% |
Len Brown | 1 | 10.00% | 1 | 25.00% |
Total | 10 | 100.00% | 4 | 100.00% |
void __init select_idle_routine(void)
{
/*
* If a platform has set its own idle routine, leave it alone.
*/
if (!sh_idle)
sh_idle = default_idle;
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Paul Mundt | 15 | 83.33% | 2 | 50.00% |
Len Brown | 2 | 11.11% | 1 | 25.00% |
Thomas Gleixner | 1 | 5.56% | 1 | 25.00% |
Total | 18 | 100.00% | 4 | 100.00% |
void stop_this_cpu(void *unused)
{
local_irq_disable();
set_cpu_online(smp_processor_id(), false);
for (;;)
cpu_sleep();
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Paul Mundt | 28 | 100.00% | 2 | 100.00% |
Total | 28 | 100.00% | 2 | 100.00% |
Overall Contributors
Person | Tokens | Prop | Commits | CommitProp |
Paul Mundt | 119 | 87.50% | 9 | 75.00% |
Thomas Gleixner | 10 | 7.35% | 1 | 8.33% |
Len Brown | 5 | 3.68% | 1 | 8.33% |
David Howells | 2 | 1.47% | 1 | 8.33% |
Total | 136 | 100.00% | 12 | 100.00% |
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.