/* Add a pinned breakpoint for the given task in our constraint table  */
static void toggle_bp_task_slot(struct task_struct *tsk, int cpu, bool enable)
/* Add a pinned breakpoint for the given task in our constraint table  */
static void toggle_bp_task_slot(struct task_struct *tsk, int cpu, bool enable)
{
	unsigned int *tsk_pinned;
	int count = 0;
	count = task_bp_pinned(tsk);
	tsk_pinned = per_cpu(nr_task_bp_pinned, cpu);
	if (enable) {
		tsk_pinned[count]++;
		if (count > 0)
			tsk_pinned[count-1]--;
	} else {
		tsk_pinned[count]--;
		if (count > 0)
			tsk_pinned[count-1]++;
	}
}