ioprio: move constant definitions to xlat

* xlat/ioprio_class.in: Add fallback values.
* xlat/ioprio_who.in: Likewise.
* ioprio.c: Remove IOPRIO_WHO_* and IOPRIO_CLASS_* enums.
This commit is contained in:
Eugene Syromyatnikov 2018-08-27 21:26:04 +02:00 committed by Dmitry V. Levin
parent 38e0f55602
commit 8a56b8a1b7
3 changed files with 7 additions and 23 deletions

View File

@ -29,21 +29,7 @@
#include "defs.h"
#include "xstring.h"
enum {
IOPRIO_WHO_PROCESS = 1,
IOPRIO_WHO_PGRP,
IOPRIO_WHO_USER
};
#include "xlat/ioprio_who.h"
enum {
IOPRIO_CLASS_NONE,
IOPRIO_CLASS_RT,
IOPRIO_CLASS_BE,
IOPRIO_CLASS_IDLE
};
#include "xlat/ioprio_class.h"
#define IOPRIO_CLASS_SHIFT (13)

View File

@ -1,5 +1,4 @@
#unconditional
IOPRIO_CLASS_NONE
IOPRIO_CLASS_RT
IOPRIO_CLASS_BE
IOPRIO_CLASS_IDLE
IOPRIO_CLASS_NONE 0
IOPRIO_CLASS_RT 1
IOPRIO_CLASS_BE 2
IOPRIO_CLASS_IDLE 3

View File

@ -1,4 +1,3 @@
#unconditional
IOPRIO_WHO_PROCESS
IOPRIO_WHO_PGRP
IOPRIO_WHO_USER
IOPRIO_WHO_PROCESS 1
IOPRIO_WHO_PGRP 2
IOPRIO_WHO_USER 3