[LTP] [PATCH 2/6] sched_football: Use atomic for ball

John Stultz jstultz@google.com
Tue Apr 30 00:56:58 CEST 2024


On Mon, Apr 29, 2024 at 2:07 AM Cyril Hrubis <chrubis@suse.cz> wrote:
>
> Hi!
> Wouldn't it make more sense to use the include/tst_atomic.h now instead
> of the functions from librttest.h. At least the version in the
> tst_atomic.h have proper memory barries for load, fallback in the case
> that compiler does not support __atomic_foo(), etc.

I don't object, but trying to include tst_atomic.h causes lots of
redefinition warnings for PACKAGE, PACKAGE_*, and VERSION which are
also set from librttest.h -> realtime_config.h

Suggestions on how to proceed there?

thanks
-john


More information about the ltp mailing list