[PATCH 1/4] hmp: sched: Clean up hmp_up_threshold checks into a utility fn