Re: [PATCH V8 5/6] clocksource: add C-SKY SMP timer

2018-09-19 Thread Guo Ren
On Thu, Sep 20, 2018 at 01:39:31PM +0800, Guo Ren wrote: > +struct clocksource csky_clocksource = { > + .name = "csky", > + .rating = 400, > + .mask = CLOCKSOURCE_MASK(32), > + .flags = CLOCK_SOURCE_IS_CONTINUOUS, > + .read = clksrc_read, > +}; > + > +#define

Re: [PATCH V8 5/6] clocksource: add C-SKY SMP timer

2018-09-19 Thread Guo Ren
On Thu, Sep 20, 2018 at 01:39:31PM +0800, Guo Ren wrote: > +struct clocksource csky_clocksource = { > + .name = "csky", > + .rating = 400, > + .mask = CLOCKSOURCE_MASK(32), > + .flags = CLOCK_SOURCE_IS_CONTINUOUS, > + .read = clksrc_read, > +}; > + > +#define

[PATCH V8 5/6] clocksource: add C-SKY SMP timer

2018-09-19 Thread Guo Ren
This timer is used by SMP system and use mfcr/mtcr instruction to access the regs. Changelog: - Add CPUHP_AP_CSKY_TIMER_STARTING in cpuhotplug.h - Support csky mp timer alpha version. - Just use low-counter with 32bit width as clocksource. - Coding convention with upstream feed-back.

[PATCH V8 5/6] clocksource: add C-SKY SMP timer

2018-09-19 Thread Guo Ren
This timer is used by SMP system and use mfcr/mtcr instruction to access the regs. Changelog: - Add CPUHP_AP_CSKY_TIMER_STARTING in cpuhotplug.h - Support csky mp timer alpha version. - Just use low-counter with 32bit width as clocksource. - Coding convention with upstream feed-back.