Skip to content

Commit

Permalink
TK1 has KERNEL_WCET of 100 instead of 10
Browse files Browse the repository at this point in the history
Proper fix is for seL4 to export MIN_BUDGET_US, but until then hardcode
it here.

Co-authored-by: Gerwin Klein <[email protected]>
Signed-off-by: Indan Zupancic <[email protected]>
  • Loading branch information
Indanz and lsf37 committed Dec 2, 2021
1 parent b572953 commit de831ca
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions apps/sel4test-tests/src/tests/schedcontext.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,14 @@

#include "../helpers.h"

/* FIXME: this is a temporary hack and MIN_BUDGET_US should be exported via libsel4 */
#ifndef MIN_BUDGET_US
#ifdef CONFIG_PLAT_TK1
#define MIN_BUDGET_US (2 * 100)
#else
#define MIN_BUDGET_US (2 * 10)
#endif
#endif

int test_sched_control_configure(env_t env)
{
Expand Down

0 comments on commit de831ca

Please sign in to comment.