Searched refs:sleeptable (Results 1 – 1 of 1) sorted by relevance
217 static struct sleep_table sleeptable; variable745 sleeptable.size = size; in sleeptable_resize()746 sleeptable.table = &probabilities[PROB_TABLE_MAX_SIZE - size]; in sleeptable_resize()758 mutex_init(&sleeptable.mutex, NULL); in init_probabilities()775 mutex_lock(&sleeptable.mutex); in table_get_probability()776 if (diff >= (sleeptable.size - 1)) { in table_get_probability()777 rval = sleeptable.table[sleeptable.size - 1]; in table_get_probability()778 sleeptable_resize(sleeptable.size + 1, verbose_sizechange(), in table_get_probability()781 rval = sleeptable.table[diff]; in table_get_probability()783 mutex_unlock(&sleeptable.mutex); in table_get_probability()