sched: Remove the not really used cmptime

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2022-07-26 00:10:27 +08:00 committed by Petro Karashchenko
parent 6a469fe228
commit 579934e709
1 changed files with 1 additions and 7 deletions

View File

@ -373,9 +373,6 @@ static inline unsigned int nxsched_process_wdtimer(uint32_t ticks,
static unsigned int nxsched_timer_process(unsigned int ticks, static unsigned int nxsched_timer_process(unsigned int ticks,
bool noswitches) bool noswitches)
{ {
#if CONFIG_RR_INTERVAL > 0 || defined(CONFIG_SCHED_SPORADIC)
unsigned int cmptime = UINT_MAX;
#endif
unsigned int rettime = 0; unsigned int rettime = 0;
unsigned int tmp; unsigned int tmp;
@ -403,9 +400,6 @@ static unsigned int nxsched_timer_process(unsigned int ticks,
tmp = nxsched_process_wdtimer(ticks, noswitches); tmp = nxsched_process_wdtimer(ticks, noswitches);
if (tmp > 0) if (tmp > 0)
{ {
#if CONFIG_RR_INTERVAL > 0 || defined(CONFIG_SCHED_SPORADIC)
cmptime = tmp;
#endif
rettime = tmp; rettime = tmp;
} }
@ -416,7 +410,7 @@ static unsigned int nxsched_timer_process(unsigned int ticks,
tmp = nxsched_process_scheduler(ticks, noswitches); tmp = nxsched_process_scheduler(ticks, noswitches);
#if CONFIG_RR_INTERVAL > 0 || defined(CONFIG_SCHED_SPORADIC) #if CONFIG_RR_INTERVAL > 0 || defined(CONFIG_SCHED_SPORADIC)
if (tmp > 0 && tmp < cmptime) if (tmp > 0 && tmp < rettime)
{ {
rettime = tmp; rettime = tmp;
} }