projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3687a2c
)
hrtimer: Make lookup table const
author
Mike Frysinger
<vapier@gentoo.org>
Mon, 2 May 2011 19:24:27 +0000
(15:24 -0400)
committer
Thomas Gleixner
<tglx@linutronix.de>
Mon, 2 May 2011 19:37:57 +0000
(21:37 +0200)
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Link:
http://lkml.kernel.org/r/%3C1304364267-14489-1-git-send-email-vapier%40gentoo.org%3E
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
kernel/hrtimer.c
patch
|
blob
|
history
diff --git
a/kernel/hrtimer.c
b/kernel/hrtimer.c
index 87fdb3f8db14c50e6238a68267834169ce6b6300..dbbbf7d430801923b8c6d544eab4f79943659547 100644
(file)
--- 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,