Exemplo n.º 1
0
Arquivo: psci.c Projeto: 020gzh/linux
static int psci_migrate(unsigned long cpuid)
{
	int err;
	u32 fn;

	fn = psci_function_id[PSCI_FN_MIGRATE];
	err = invoke_psci_fn(fn, cpuid, 0, 0);
	return psci_to_linux_errno(err);
}
Exemplo n.º 2
0
Arquivo: psci.c Projeto: 020gzh/linux
static int psci_cpu_off(u32 state)
{
	int err;
	u32 fn;

	fn = psci_function_id[PSCI_FN_CPU_OFF];
	err = invoke_psci_fn(fn, state, 0, 0);
	return psci_to_linux_errno(err);
}
Exemplo n.º 3
0
Arquivo: psci.c Projeto: 020gzh/linux
static int psci_cpu_on(unsigned long cpuid, unsigned long entry_point)
{
	int err;
	u32 fn;

	fn = psci_function_id[PSCI_FN_CPU_ON];
	err = invoke_psci_fn(fn, cpuid, entry_point, 0);
	return psci_to_linux_errno(err);
}
Exemplo n.º 4
0
Arquivo: psci.c Projeto: 020gzh/linux
static int psci_cpu_suspend(u32 state, unsigned long entry_point)
{
	int err;
	u32 fn;

	fn = psci_function_id[PSCI_FN_CPU_SUSPEND];
	err = invoke_psci_fn(fn, state, entry_point, 0);
	return psci_to_linux_errno(err);
}
Exemplo n.º 5
0
Arquivo: psci.c Projeto: 01org/prd
static int psci_cpu_off(struct psci_power_state state)
{
	int err;
	u32 fn, power_state;

	fn = psci_function_id[PSCI_FN_CPU_OFF];
	power_state = psci_power_state_pack(state);
	err = invoke_psci_fn(fn, power_state, 0, 0);
	return psci_to_linux_errno(err);
}
Exemplo n.º 6
0
Arquivo: psci.c Projeto: 01org/prd
static int psci_cpu_suspend(struct psci_power_state state,
			    unsigned long entry_point)
{
	int err;
	u32 fn, power_state;

	fn = psci_function_id[PSCI_FN_CPU_SUSPEND];
	power_state = psci_power_state_pack(state);
	err = invoke_psci_fn(fn, power_state, entry_point, 0);
	return psci_to_linux_errno(err);
}
Exemplo n.º 7
0
static int psci_cpu_on(unsigned long cpuid, unsigned long entry_point)
{
	int err;
	u32 fn;

	fn = psci_function_id[PSCI_FN_CPU_ON];
#ifdef CONFIG_MTK_FIQ_CACHE
	do {
		err = invoke_psci_fn(fn, cpuid, entry_point, 0);
	} while (err);
#else
	err = invoke_psci_fn(fn, cpuid, entry_point, 0);
#endif
	return psci_to_linux_errno(err);
}
Exemplo n.º 8
0
static int psci_cpu_off(struct psci_power_state state)
{
	int err;
	u32 fn, power_state;

	fn = psci_function_id[PSCI_FN_CPU_OFF];
	power_state = psci_power_state_pack(state);
#ifdef CONFIG_MTK_FIQ_CACHE
	do {
		err = invoke_psci_fn(fn, power_state, 0, 0);
	} while (err);
#else
	err = invoke_psci_fn(fn, power_state, 0, 0);
#endif
	return psci_to_linux_errno(err);
}