/* The class is added to row at priorities marked in mask. It does nothing if mask == 0.  */
static void htb_add_class_to_row(struct htb_sched *q, struct htb_class *cl, int mask)
/* The class is added to row at priorities marked in mask. It does nothing if mask == 0.  */
static void htb_add_class_to_row(struct htb_sched *q, struct htb_class *cl, int mask)
{
	q->row_mask[cl->level] |= mask;
	while (mask) {
		int prio = ffz(~mask);
		mask &= ~(1 << prio);
		htb_add_to_id_tree(q->row[cl->level] + prio, cl, prio);
	}
}