Rename SliceCount to slice_count

Updating global variable's name to follow a consistent naming convention.

Change accomplished with the following script:

   #!/bin/bash
   echo "Searching for ${1} to replace with ${2}"
   find ./ \( -name "*.[chs]" -o -name "sysgen.py" -o -name "*.kconf" \) \
            ! -path "./host/src/genIdt/*" \
            ! -path "*/outdir/*" | xargs sed -i 's/\b'${1}'\b/'${2}'/g';

Change-Id: I18710011b215ddb5040f8d073d7e4fb13783af94
Signed-off-by: Yonattan Louise <yonattan.a.louise.mendoza@intel.com>
This commit is contained in:
Yonattan Louise 2015-04-27 10:28:35 -05:00 committed by Anas Nashif
commit 224a6b16ec

View file

@ -49,7 +49,7 @@ This module implements the microkernel's tick event handler.
#include <sections.h>
#ifdef CONFIG_TIMESLICING
static int32_t SliceCount = (int32_t)0;
static int32_t slice_count = (int32_t)0;
static int32_t SliceTime = (int32_t)CONFIG_TIMESLICE_SIZE;
static kpriority_t SlicePrio =
(kpriority_t)CONFIG_TIMESLICE_PRIORITY;
@ -188,9 +188,9 @@ static inline void _TimeSliceUpdate(void)
{
#ifdef CONFIG_TIMESLICING
int yield = SliceTime && (_k_current_task->Prio >= SlicePrio) &&
(++SliceCount >= SliceTime);
(++slice_count >= SliceTime);
if (yield) {
SliceCount = 0;
slice_count = 0;
K_yield(NULL);
}
#else