xen: drop preempt_count() for non-debug builds
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_countare tested in debug build only. So drop them for non-debug builds.Quoted 7 lines
Quoted 1 line
Signed-off-by Juergen Gross <[email protected]>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 ofCONFIG_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