Skip to contentSkip to conversation

xen: drop preempt_count() for non-debug builds

PATCH Juergen Gross 1 participant 1 message May 22, 2019

lore
Share & tools
lore
#0 lore raw
Quoted 13 lines · Jan Beulich
Quoted 5 lines
Quoted 1 line
Quoted 1 line · On 22.05.19 at 12:00, <[email protected]> wrote:
Quoted 3 lines · Juergen Gross

preempt_count() and the associated per-cpu variable __preempt_count are tested in debug build only. So drop them for non-debug builds.

Quoted 7 lines
Quoted 1 line

I'd be tempted to fold patches 2 and 3 together, because they are both the same change, and it would reduce the churn.

two folded into one.

Quoted 6 lines

I'm a little surprised by this: Wasn't it you who generally wanted what ASSERT() expands to (controlled by NDEBUG) be independent of CONFIG_DEBUG, at some point down the road? Aren't you even having ASSERT()s enabled in release builds of XenServer, or am I misremembering? If so patch 3 would move us in the wrong direction.

A possibility to solve that would be the addition of CONFIG_ASSERT defaulting to CONFIG_DEBUG.

Juergen

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel