aboutsummaryrefslogtreecommitdiff
path: root/drivers/clocksource/timer-atcpit100.c
AgeCommit message (Collapse)AuthorFilesLines
2018-07-26clocksource/drivers: Set clockevent device cpumask to cpu_possible_maskSudeep Holla1-1/+1
Currently, quite a few clockevent devices have cpumask set to cpu_all_mask which should be fine. However, cpu_possible_mask is more accurate and if there are any other clockevent devices in the system which have cpumask set to cpu_possible_mask, then having cpu_all_mask may result in issues (mostly boot hang with forever loops in clockevents_notify_released). So, lets replace all the clockevent device cpu_all_mask to cpu_possible_mask in order to prevent above mentioned possible issue. Cc: Daniel Lezcano <[email protected]> Cc: Thomas Gleixner <[email protected]> Cc: Thierry Reding <[email protected]> Cc: Jonathan Hunter <[email protected]> Cc: Santosh Shilimkar <[email protected]> Signed-off-by: Sudeep Holla <[email protected]> Signed-off-by: Daniel Lezcano <[email protected]>
2018-02-22clocksource/drivers/atcpit100: VDSO supportRick Chen1-0/+18
VDSO needs real-time cycle count to ensure the time accuracy. Unlike others, nds32 architecture does not define clock source, hence VDSO needs atcpit100 offering real-time cycle count to derive the correct time. Signed-off-by: Vincent Chen <[email protected]> Signed-off-by: Rick Chen <[email protected]> Signed-off-by: Greentime Hu <[email protected]>
2018-02-22clocksource/drivers/atcpit100: Add andestech atcpit100 timerRick Chen1-0/+248
ATCPIT100 is often used on the Andes architecture, This timer provide 4 PIT channels. Each PIT channel is a multi-function timer, can be configured as 32,16,8 bit timers or PWM as well. For system timer it will set channel 1 32-bit timer0 as clock source and count downwards until underflow and restart again. It also set channel 0 32-bit timer0 as clock event and count downwards until condition match. It will generate an interrupt for handling periodically. Signed-off-by: Rick Chen <[email protected]> Signed-off-by: Greentime Hu <[email protected]> Reviewed-by: Linus Walleij <[email protected]> Add andestech atcpit100 timer