diff options
Diffstat (limited to 'multimedia/onevpl/files/patch-sched')
-rw-r--r-- | multimedia/onevpl/files/patch-sched | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/multimedia/onevpl/files/patch-sched b/multimedia/onevpl/files/patch-sched new file mode 100644 index 000000000000..8012f025d8bb --- /dev/null +++ b/multimedia/onevpl/files/patch-sched @@ -0,0 +1,33 @@ +Disable non-POSIX scheduling policies if not supported + +tools/legacy/sample_common/src/vm/thread_linux.cpp:279:16: error: use of undeclared identifier 'SCHED_BATCH' + type = SCHED_BATCH; + ^ +tools/legacy/sample_common/src/vm/thread_linux.cpp:282:16: error: use of undeclared identifier 'SCHED_IDLE' + type = SCHED_IDLE; + ^ + +--- tools/legacy/sample_common/src/vm/thread_linux.cpp.orig 2021-09-13 22:51:02 UTC ++++ tools/legacy/sample_common/src/vm/thread_linux.cpp +@@ -275,15 +275,21 @@ mfxStatus msdk_thread_get_schedtype(const msdk_char* s + else if (!msdk_strcmp(str, MSDK_STRING("other"))) { + type = SCHED_OTHER; + } ++#ifdef SCHED_BATCH + else if (!msdk_strcmp(str, MSDK_STRING("batch"))) { + type = SCHED_BATCH; + } ++#endif ++#ifdef SCHED_IDLE + else if (!msdk_strcmp(str, MSDK_STRING("idle"))) { + type = SCHED_IDLE; + } ++#endif ++ //#ifdef SCHED_DEADLINE + // else if (!msdk_strcmp(str, MSDK_STRING("deadline"))) { + // type = SCHED_DEADLINE; + // } ++ //#endif + else { + return MFX_ERR_UNSUPPORTED; + } |