> --- a/lib/librte_telemetry/rte_telemetry.h > +++ b/lib/librte_telemetry/rte_telemetry.h > +#ifdef RTE_EXEC_ENV_WINDOWS > +#include <sched.h> > +#endif
I don't think sched.h is required only for Windows. It happens to be already included in Linux build, but there is no good reason for the #ifdef above. I'll drop the #ifdef. In the rest of the patch, we can avoid duplicating some includes and keep register functions untouched.