scx_userland.h 389 B

1234567891011121314151617
  1. // SPDX-License-Identifier: GPL-2.0
  2. /* Copyright (c) 2022 Meta, Inc */
  3. #ifndef __SCX_USERLAND_COMMON_H
  4. #define __SCX_USERLAND_COMMON_H
  5. /*
  6. * An instance of a task that has been enqueued by the kernel for consumption
  7. * by a user space global scheduler thread.
  8. */
  9. struct scx_userland_enqueued_task {
  10. __s32 pid;
  11. u64 sum_exec_runtime;
  12. u64 weight;
  13. };
  14. #endif // __SCX_USERLAND_COMMON_H