With new glibc versions, it is must to have set scheduling policy
before modifying scheduling parameters. That said,
pthread_attr_setschedpolicy() has to be called before calling
pthread_attr_setschedparam().
Signed-off-by: Gowrishankar <gowrishankar.m@in.ibm.com>
Tested-by: Gowrishankar <gowrishankar.m@in.ibm.com>
patch to reorder pthread functions for scheduler param