LCOV - code coverage report
Current view: top level - include/linux/sched - deadline.h (source / functions) Hit Total Coverage
Test: Real Lines: 2 3 66.7 %
Date: 2020-10-17 15:46:16 Functions: 0 0 -
Legend: Neither, QEMU, Real, Both Branches: 0 0 -

           Branch data     Line data    Source code
       1                 :            : /* SPDX-License-Identifier: GPL-2.0 */
       2                 :            : 
       3                 :            : /*
       4                 :            :  * SCHED_DEADLINE tasks has negative priorities, reflecting
       5                 :            :  * the fact that any of them has higher prio than RT and
       6                 :            :  * NORMAL/BATCH tasks.
       7                 :            :  */
       8                 :            : 
       9                 :            : #define MAX_DL_PRIO             0
      10                 :            : 
      11                 :            : static inline int dl_prio(int prio)
      12                 :            : {
      13                 :          3 :         if (unlikely(prio < MAX_DL_PRIO))
      14                 :            :                 return 1;
      15                 :            :         return 0;
      16                 :            : }
      17                 :            : 
      18                 :            : static inline int dl_task(struct task_struct *p)
      19                 :            : {
      20                 :          3 :         return dl_prio(p->prio);
      21                 :            : }
      22                 :            : 
      23                 :            : static inline bool dl_time_before(u64 a, u64 b)
      24                 :            : {
      25                 :          0 :         return (s64)(a - b) < 0;
      26                 :            : }
      27                 :            : 
      28                 :            : #ifdef CONFIG_SMP
      29                 :            : 
      30                 :            : struct root_domain;
      31                 :            : extern void dl_add_task_root_domain(struct task_struct *p);
      32                 :            : extern void dl_clear_root_domain(struct root_domain *rd);
      33                 :            : 
      34                 :            : #endif /* CONFIG_SMP */
    

Generated by: LCOV version 1.14