SMP: Rename sim_cpupause to sim_cpu_pause for consistency with other naming

This commit is contained in:
Gregory Nutt 2016-02-18 11:46:08 -06:00
parent 3deac3d43d
commit 3508e22f3f
3 changed files with 10 additions and 8 deletions

View File

@ -224,8 +224,8 @@ int sim_cpustart(int cpu, main_t idletask);
/* up_smpsignal.c *********************************************************/
#ifdef CONFIG_SMP
void sim_cpupause(int cpu, FAR volatile spinlock_t *wait,
FAR volatile unsigned char *paused);
void sim_cpu_pause(int cpu, FAR volatile spinlock_t *wait,
FAR volatile unsigned char *paused);
#endif
/* up_tickless.c **********************************************************/

View File

@ -37,6 +37,8 @@
* Included Files
****************************************************************************/
#define _GNU_SOURCE 1
#include <stdint.h>
#include <pthread.h>
#include <semaphore.h>
@ -84,8 +86,8 @@ static volatile spinlock_t g_sim_cpuwait[CONFIG_SMP_NCPUS];
* NuttX domain function prototypes
****************************************************************************/
void sim_cpupause(int cpu, volatile spinlock_t *wait,
volatile unsigned char *paused);
void sim_cpu_pause(int cpu, volatile spinlock_t *wait,
volatile unsigned char *paused);
/****************************************************************************
* Private Functions
@ -170,7 +172,7 @@ static void sim_handle_signal(int signo, siginfo_t *info, void *context)
/* We need to perform the actual tasking operations in the NuttX domain */
sim_cpupause(cpu, &g_sim_cpuwait[cpu], &g_sim_cpupaused[cpu]);
sim_cpu_pause(cpu, &g_sim_cpuwait[cpu], &g_sim_cpupaused[cpu]);
}
/****************************************************************************

View File

@ -52,7 +52,7 @@
****************************************************************************/
/****************************************************************************
* Name: sim_cpupause
* Name: sim_cpu_pause
*
* Description:
* This is the SIGUSR1 signal handling logic. It implements the core
@ -70,8 +70,8 @@
*
****************************************************************************/
void sim_cpupause(int cpu, volatile spinlock_t *wait,
volatile unsigned char *paused)
void sim_cpu_pause(int cpu, volatile spinlock_t *wait,
volatile unsigned char *paused)
{
struct tcb_s *rtcb = current_task(cpu);