summaryrefslogtreecommitdiffstats
path: root/linux/LinuxProcess.h
diff options
context:
space:
mode:
authorChristian Göttsche <cgzones@googlemail.com>2020-10-27 21:26:39 +0100
committercgzones <cgzones@googlemail.com>2020-10-28 19:57:10 +0100
commitd33b2be2ca445badb3c3004b618c8e7c79677f8c (patch)
tree8742744e528b676a2b36243b63a5a59ce76b8fb5 /linux/LinuxProcess.h
parent6b3dbd5c67f5f3a03c712682f603e646afa2f621 (diff)
Implement LinuxProcess_effectiveIOPriority as function
Make it more readable and fix unenclosed macro arguments
Diffstat (limited to 'linux/LinuxProcess.h')
-rw-r--r--linux/LinuxProcess.h10
1 files changed, 0 insertions, 10 deletions
diff --git a/linux/LinuxProcess.h b/linux/LinuxProcess.h
index 80a4220b..02e4af7e 100644
--- a/linux/LinuxProcess.h
+++ b/linux/LinuxProcess.h
@@ -171,16 +171,6 @@ Process* LinuxProcess_new(const Settings* settings);
void Process_delete(Object* cast);
-/*
-[1] Note that before kernel 2.6.26 a process that has not asked for
-an io priority formally uses "none" as scheduling class, but the
-io scheduler will treat such processes as if it were in the best
-effort class. The priority within the best effort class will be
-dynamically derived from the cpu nice level of the process:
-extern io_priority;
-*/
-#define LinuxProcess_effectiveIOPriority(p_) (IOPriority_class(p_->ioPriority) == IOPRIO_CLASS_NONE ? IOPriority_tuple(IOPRIO_CLASS_BE, (p_->super.nice + 20) / 5) : p_->ioPriority)
-
IOPriority LinuxProcess_updateIOPriority(LinuxProcess* this);
bool LinuxProcess_setIOPriority(Process* this, Arg ioprio);

© 2014-2024 Faster IT GmbH | imprint | privacy policy