mirror of
https://github.com/apache/nuttx.git
synced 2026-06-04 06:42:32 +08:00
arch/arm[64]: fix nxstyle issues
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
This commit is contained in:
committed by
Xiang Xiao
parent
1c2931222c
commit
69b6a1f09c
@@ -126,7 +126,7 @@ static int psci_detect(void)
|
|||||||
uint32_t ver = psci_get_version();
|
uint32_t ver = psci_get_version();
|
||||||
|
|
||||||
sinfo("Detected PSCI v%ld.%ld\n",
|
sinfo("Detected PSCI v%ld.%ld\n",
|
||||||
PSCI_VERSION_MAJOR(ver), PSCI_VERSION_MINOR(ver));
|
PSCI_VERSION_MAJOR(ver), PSCI_VERSION_MINOR(ver));
|
||||||
|
|
||||||
if (PSCI_VERSION_MAJOR(ver) == 0 && PSCI_VERSION_MINOR(ver) < 2)
|
if (PSCI_VERSION_MAJOR(ver) == 0 && PSCI_VERSION_MINOR(ver) < 2)
|
||||||
{
|
{
|
||||||
@@ -186,7 +186,7 @@ int psci_cpu_on(unsigned long cpuid, uintptr_t entry_point)
|
|||||||
}
|
}
|
||||||
|
|
||||||
ret = psci_data.invoke_psci_fn(PSCI_FN_NATIVE(0_2, CPU_ON),
|
ret = psci_data.invoke_psci_fn(PSCI_FN_NATIVE(0_2, CPU_ON),
|
||||||
cpuid, (unsigned long)entry_point, 0);
|
cpuid, (unsigned long)entry_point, 0);
|
||||||
|
|
||||||
return psci_to_dev_err(ret);
|
return psci_to_dev_err(ret);
|
||||||
}
|
}
|
||||||
@@ -219,7 +219,7 @@ int psci_sys_poweroff(void)
|
|||||||
return psci_to_dev_err(ret);
|
return psci_to_dev_err(ret);
|
||||||
}
|
}
|
||||||
|
|
||||||
int arm_psci_init(const char * method)
|
int arm_psci_init(const char *method)
|
||||||
{
|
{
|
||||||
psci_data.conduit = SMCCC_CONDUIT_NONE;
|
psci_data.conduit = SMCCC_CONDUIT_NONE;
|
||||||
|
|
||||||
|
|||||||
@@ -128,7 +128,7 @@ static int psci_detect(void)
|
|||||||
uint32_t ver = psci_get_version();
|
uint32_t ver = psci_get_version();
|
||||||
|
|
||||||
sinfo("Detected PSCI v%d.%d\n",
|
sinfo("Detected PSCI v%d.%d\n",
|
||||||
PSCI_VERSION_MAJOR(ver), PSCI_VERSION_MINOR(ver));
|
PSCI_VERSION_MAJOR(ver), PSCI_VERSION_MINOR(ver));
|
||||||
|
|
||||||
if (PSCI_VERSION_MAJOR(ver) == 0 && PSCI_VERSION_MINOR(ver) < 2)
|
if (PSCI_VERSION_MAJOR(ver) == 0 && PSCI_VERSION_MINOR(ver) < 2)
|
||||||
{
|
{
|
||||||
@@ -188,12 +188,12 @@ int psci_cpu_on(unsigned long cpuid, uintptr_t entry_point)
|
|||||||
}
|
}
|
||||||
|
|
||||||
ret = psci_data.invoke_psci_fn(PSCI_FN_NATIVE(0_2, CPU_ON),
|
ret = psci_data.invoke_psci_fn(PSCI_FN_NATIVE(0_2, CPU_ON),
|
||||||
cpuid, (unsigned long)entry_point, 0);
|
cpuid, (unsigned long)entry_point, 0);
|
||||||
|
|
||||||
return psci_to_dev_err(ret);
|
return psci_to_dev_err(ret);
|
||||||
}
|
}
|
||||||
|
|
||||||
int arm64_psci_init(const char * method)
|
int arm64_psci_init(const char *method)
|
||||||
{
|
{
|
||||||
psci_data.conduit = SMCCC_CONDUIT_NONE;
|
psci_data.conduit = SMCCC_CONDUIT_NONE;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user