Commit ecc33964 authored by dann frazier's avatar dann frazier Committed by Tim Gardner

Revert "hrtimer: Catch illegal clockids"

BugLink: http://bugs.launchpad.net/bugs/1549494

This reverts commit 86b9c76b0c7c5bbdb6196effb2c7ae4f08e11b80.
Signed-off-by: default avatarTim Gardner <tim.gardner@canonical.com>
parent efd0581a
......@@ -94,9 +94,6 @@ DEFINE_PER_CPU(struct hrtimer_cpu_base, hrtimer_bases) =
};
static const int hrtimer_clock_to_base_table[MAX_CLOCKS] = {
/* Make sure we catch unsupported clockids */
[0 ... MAX_CLOCKS - 1] = HRTIMER_MAX_CLOCK_BASES,
[CLOCK_REALTIME] = HRTIMER_BASE_REALTIME,
[CLOCK_MONOTONIC] = HRTIMER_BASE_MONOTONIC,
[CLOCK_BOOTTIME] = HRTIMER_BASE_BOOTTIME,
......@@ -105,9 +102,7 @@ static const int hrtimer_clock_to_base_table[MAX_CLOCKS] = {
static inline int hrtimer_clockid_to_base(clockid_t clock_id)
{
int base = hrtimer_clock_to_base_table[clock_id];
BUG_ON(base == HRTIMER_MAX_CLOCK_BASES);
return base;
return hrtimer_clock_to_base_table[clock_id];
}
/*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment