Skip to content

Commit

Permalink
Disable ETA proportion sanity assertions during PREEMPT_EVERYWHERE mo…
Browse files Browse the repository at this point in the history
…de, hack around bug #218.
  • Loading branch information
bblum committed Jun 7, 2016
1 parent 94cf177 commit d64b939
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions work/modules/landslide/estimate.c
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,15 @@ static unsigned int update_marked_children(struct hax *h)
return old_marked_children;
}

#ifdef PREEMPT_EVERYWHERE
// FIXME: bug #218
#define ASSERT_FRACTIONAL(val) do { } while (0)
#else
#define ASSERT_FRACTIONAL(val) do { \
typeof(val) __val = (val); \
assert(__val >= 0.0L && __val <= 1.0L); \
} while (0)
#endif

/* Propagate changed proportion to descendants, including the nobe itself. */
static void adjust_subtree_proportions(struct hax *ancestor, struct hax *leaf,
Expand Down

0 comments on commit d64b939

Please sign in to comment.