コード例 #1
0
ファイル: smp-r8a7779.c プロジェクト: monojo/xu3
static int r8a7779_platform_cpu_kill(unsigned int cpu)
{
	struct r8a7779_pm_ch *ch = NULL;
	int ret = -EIO;

	cpu = cpu_logical_map(cpu);

	/* disable cache coherency */
	modify_scu_cpu_psr(3 << (cpu * 8), 0);

	if (cpu < ARRAY_SIZE(r8a7779_ch_cpu))
		ch = r8a7779_ch_cpu[cpu];

	if (ch)
		ret = r8a7779_sysc_power_down(ch);

	return ret ? ret : 1;
}
コード例 #2
0
static int pd_power_down(struct generic_pm_domain *genpd)
{
    return r8a7779_sysc_power_down(to_r8a7779_ch(genpd));
}