[PATCH v2 openEuler-23.09 14/21] sched: programmable: Add convenient helper functions to convert sched entity