LCOV - code coverage report
Current view: top level - include/linux/sched - deadline.h (source / functions) Hit Total Coverage
Test: coverage.info Lines: 2 2 100.0 %
Date: 2014-04-16 Functions: 0 0 -
Branches: 7 44 15.9 %

           Branch data     Line data    Source code
       1                 :            : #ifndef _SCHED_DEADLINE_H
       2                 :            : #define _SCHED_DEADLINE_H
       3                 :            : 
       4                 :            : /*
       5                 :            :  * SCHED_DEADLINE tasks has negative priorities, reflecting
       6                 :            :  * the fact that any of them has higher prio than RT and
       7                 :            :  * NORMAL/BATCH tasks.
       8                 :            :  */
       9                 :            : 
      10                 :            : #define MAX_DL_PRIO             0
      11                 :            : 
      12                 :            : static inline int dl_prio(int prio)
      13                 :            : {
      14 [ +  - ][ #  # ]:    2474103 :         if (unlikely(prio < MAX_DL_PRIO))
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ +  + ]
         [ #  # ][ #  # ]
         [ +  - ][ +  - ]
         [ #  # ][ #  # ]
         [ #  # ][ +  + ]
      15                 :            :                 return 1;
      16                 :            :         return 0;
      17                 :            : }
      18                 :            : 
      19                 :            : static inline int dl_task(struct task_struct *p)
      20                 :            : {
      21                 :     265523 :         return dl_prio(p->prio);
      22                 :            : }
      23                 :            : 
      24                 :            : #endif /* _SCHED_DEADLINE_H */

Generated by: LCOV version 1.9