exynos4210_mct.c (28ae3179fc52d2e4d870b635c4a412aab99759e7) | exynos4210_mct.c (c5d36da7ec62e4c72a72a437057fb6072cf0d6ab) |
---|---|
1/* 2 * Samsung exynos4210 Multi Core timer 3 * 4 * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. 5 * All rights reserved. 6 * 7 * Evgeny Voevodin <e.voevodin@samsung.com> 8 * --- 801 unchanged lines hidden (view full) --- 810 tcnto = s->last_tcnto; 811 } else if (!s->int_run) { 812 /* INT counter is stopped, progress is by CNT timer */ 813 tcnto = remain % s->tcntb; 814 } else { 815 /* Both are counting */ 816 icnto = remain / s->tcntb; 817 if (icnto) { | 1/* 2 * Samsung exynos4210 Multi Core timer 3 * 4 * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. 5 * All rights reserved. 6 * 7 * Evgeny Voevodin <e.voevodin@samsung.com> 8 * --- 801 unchanged lines hidden (view full) --- 810 tcnto = s->last_tcnto; 811 } else if (!s->int_run) { 812 /* INT counter is stopped, progress is by CNT timer */ 813 tcnto = remain % s->tcntb; 814 } else { 815 /* Both are counting */ 816 icnto = remain / s->tcntb; 817 if (icnto) { |
818 tcnto = remain % (icnto * s->tcntb); | 818 tcnto = remain % ((uint64_t)icnto * s->tcntb); |
819 } else { 820 tcnto = remain % s->tcntb; 821 } 822 } 823 824 return tcnto; 825} 826 --- 745 unchanged lines hidden --- | 819 } else { 820 tcnto = remain % s->tcntb; 821 } 822 } 823 824 return tcnto; 825} 826 --- 745 unchanged lines hidden --- |