Go to the source code of this file.
Functions | |
static int | granularity_init (void) |
Obtain the timer granularity from the kip. | |
int | granularity (void) |
Return scheduling granularity. | |
int | granularity_roundup (unsigned time) |
Round time up to the next kernel-supported granularity. | |
Variables | |
static int | kernel_granularity |
Definition in file granularity.c.
int granularity | ( | void | ) |
Return scheduling granularity.
Definition at line 36 of file granularity.c.
References granularity_init(), and kernel_granularity.
Referenced by main().
static int granularity_init | ( | void | ) | [static] |
Obtain the timer granularity from the kip.
0 | ok | |
!0 | error |
Definition at line 24 of file granularity.c.
References kernel_granularity.
Referenced by granularity(), and granularity_roundup().
int granularity_roundup | ( | unsigned | time | ) |
Round time up to the next kernel-supported granularity.
0 | some error occured | |
>0 | OK |
Definition at line 46 of file granularity.c.
References granularity_init(), and kernel_granularity.
Referenced by l4cpu_reserve_add_component(), and l4cpu_reserve_change_component().
int kernel_granularity [static] |
Definition at line 18 of file granularity.c.
Referenced by granularity(), granularity_init(), and granularity_roundup().