From d64b939d27dd62bf584094a81ca6028572c19541 Mon Sep 17 00:00:00 2001 From: Ben Blum Date: Tue, 7 Jun 2016 17:38:56 -0400 Subject: [PATCH] Disable ETA proportion sanity assertions during PREEMPT_EVERYWHERE mode, hack around bug #218. --- work/modules/landslide/estimate.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/work/modules/landslide/estimate.c b/work/modules/landslide/estimate.c index e8fab2e..51a7a51 100644 --- a/work/modules/landslide/estimate.c +++ b/work/modules/landslide/estimate.c @@ -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,