Cedric Blancher via Cygwin wrote:
On Fri, 20 Dec 2024 at 07:36, Brian Inglis via Cygwin <cygwin@cygwin.com> wrote:
On 2024-12-19 14:08, René Berber via Cygwin wrote:
On 12/19/2024 2:01 PM, Eliot Moss via Cygwin wrote:
On 12/19/2024 1:43 PM, Cedric Blancher via Cygwin wrote:
cygwin.git;a=commit;h=61c2f075cd55d4a52b4713383f75870c1e416923
added SCHED_IDLE support for Cygwin 3.6. It should work.
--------------------------------^^^^^^^^^^^
Cygwin should support it, but I wonder if chrt (in util-linux) has been
updated in light of the change.
Version 3.6 is not a release, so unless you're using a snapshot...
The maintainer can flip Cygwin to test 3.6... and use that to build a test
release of util-linux with Cygwin >= 3.6 as a dependency and make that test
release available.
So you say util-linux only needs to be recompiled?

Yes, otherwise the options related to the newly added SCHED_* defines have no effect:

util-linux-2.39.3/schedutils/chrt.c:
int main(...)
...
        case 'b':
#ifdef SCHED_BATCH
            ctl->policy = SCHED_BATCH;
#endif
            break;
...
        case 'i':
#ifdef SCHED_IDLE
            ctl->policy = SCHED_IDLE;
#endif
            break;


The 'chrt --help' output is misleading because it always advertises '-b, --batch', '-i, --idle', ...

--
Regards,
Christian


--
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

Reply via email to