Skip to content

Commit

Permalink
stress-prio-inv: match order of STRESS_PRIO_INV_POLICY_* with stress_…
Browse files Browse the repository at this point in the history
…prio_inv_policies

Signed-off-by: Colin Ian King <[email protected]>
  • Loading branch information
ColinIanKing committed Jan 22, 2024
1 parent 7d34bf2 commit 1fa4166
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions stress-prio-inv.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,11 @@
#define STRESS_PRIO_INV_TYPE_NONE (1)
#define STRESS_PRIO_INV_TYPE_PROTECT (2)

#define STRESS_PRIO_INV_POLICY_OTHER (0)
#define STRESS_PRIO_INV_POLICY_BATCH (1)
#define STRESS_PRIO_INV_POLICY_IDLE (2)
#define STRESS_PRIO_INV_POLICY_FIFO (3)
/* must match order in stress_prio_inv_policies[] */
#define STRESS_PRIO_INV_POLICY_BATCH (0)
#define STRESS_PRIO_INV_POLICY_IDLE (1)
#define STRESS_PRIO_INV_POLICY_FIFO (2)
#define STRESS_PRIO_INV_POLICY_OTHER (3)
#define STRESS_PRIO_INV_POLICY_RR (4)

static const stress_help_t help[] = {
Expand Down Expand Up @@ -135,6 +136,8 @@ static const stress_opt_set_func_t opt_set_funcs[] = {
defined(HAVE_PTHREAD_MUTEX_T) && \
defined(HAVE_PTHREAD_MUTEX_INIT) && \
defined(HAVE_PTHREAD_MUTEX_DESTROY) && \
defined(HAVE_SETPRIORITY) && \
defined(HAVE_SCHED_SETSCHEDULER) && \
defined(HAVE_SCHED_GET_PRIORITY_MIN) && \
defined(HAVE_SCHED_GET_PRIORITY_MAX) && \
(defined(SCHED_FIFO) || \
Expand Down

0 comments on commit 1fa4166

Please sign in to comment.