summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2015-12-13 21:36:23 +0100
committerLinus Torvalds <torvalds@linux-foundation.org>2015-12-13 21:36:23 +0100
commit43afc99db9ead0bb8a69833ffb5e6ee2a7fe76b4 (patch)
tree81222084a81eaa67e1dd9760ff713290935951ef
parentMerge tag 'char-misc-4.4-rc5' of git://git.kernel.org/pub/scm/linux/kernel/gi... (diff)
parentclocksource: Mmio: remove artificial 32bit limitation (diff)
downloadlinux-43afc99db9ead0bb8a69833ffb5e6ee2a7fe76b4.tar.xz
linux-43afc99db9ead0bb8a69833ffb5e6ee2a7fe76b4.zip
Merge branch 'timers-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull timer fix from Thomas Gleixner: "A single fix to unbreak a clocksource driver which has more than 32bit counter width" * 'timers-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: clocksource: Mmio: remove artificial 32bit limitation
-rw-r--r--drivers/clocksource/mmio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/clocksource/mmio.c b/drivers/clocksource/mmio.c
index 1593ade2a815..c4f7d7a9b689 100644
--- a/drivers/clocksource/mmio.c
+++ b/drivers/clocksource/mmio.c
@@ -55,7 +55,7 @@ int __init clocksource_mmio_init(void __iomem *base, const char *name,
{
struct clocksource_mmio *cs;
- if (bits > 32 || bits < 16)
+ if (bits > 64 || bits < 16)
return -EINVAL;
cs = kzalloc(sizeof(struct clocksource_mmio), GFP_KERNEL);