On Dec 16 18:43, Christian Franke wrote:
> From 46fa0f243d24c6df682ea6722509e890be6adf59 Mon Sep 17 00:00:00 2001
> From: Christian Franke <christian.fra...@t-online.de>
> Date: Mon, 16 Dec 2024 17:32:55 +0100
> Subject: [PATCH] Cygwin: /proc/<PID>/stat: set field (18) according to
>  scheduling policy
> 
> If a realtime policy is selected, set the '(18) priority' field to the
> negated sched_priority minus one.  If SCHED_IDLE is selected, set it to
> the lowest priority 39.  Also set '(19) nice' to the originally requested
> nice value.  Ensure consistence with the current Windows priority in all
> cases.  Move the sched_priority from/to Windows priority mapping from
> sched_get/setparam() to new functions in miscfuncs.cc.
> 
> Signed-off-by: Christian Franke <christian.fra...@t-online.de>
> ---
>  winsup/cygwin/fhandler/process.cc        | 26 +++++++++--
>  winsup/cygwin/local_includes/miscfuncs.h |  2 +
>  winsup/cygwin/miscfuncs.cc               | 56 ++++++++++++++++++++++--
>  winsup/cygwin/release/3.6.0              |  5 +++
>  winsup/cygwin/sched.cc                   | 40 +++--------------
>  5 files changed, 88 insertions(+), 41 deletions(-)

Pushed.


Thanks,
Corinna

Reply via email to