Messages in this thread Patch in this message | | | From | Mike Frysinger <> | Subject | [PATCH] hrtimer: make lookup table const | Date | Mon, 2 May 2011 15:24:27 -0400 |
| |
Signed-off-by: Mike Frysinger <vapier@gentoo.org> --- kernel/hrtimer.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/kernel/hrtimer.c b/kernel/hrtimer.c index 87fdb3f..dbbbf7d 100644 --- a/kernel/hrtimer.c +++ b/kernel/hrtimer.c @@ -81,7 +81,7 @@ DEFINE_PER_CPU(struct hrtimer_cpu_base, hrtimer_bases) = } }; -static int hrtimer_clock_to_base_table[MAX_CLOCKS] = { +static const int hrtimer_clock_to_base_table[MAX_CLOCKS] = { [CLOCK_REALTIME] = HRTIMER_BASE_REALTIME, [CLOCK_MONOTONIC] = HRTIMER_BASE_MONOTONIC, [CLOCK_BOOTTIME] = HRTIMER_BASE_BOOTTIME, -- 1.7.5.rc3
| |