create mode 100644 drivers/clocksource/arm_global_timer.c diff --git a/Documentation/devicetree/bindings/arm/global_timer.txt b/Documentation/devicetree/bindings/arm/global_timer.txt new file mode 100644 index 0000000..b64abac --- /dev/null +++ b/Documentation/devicetree/bindings/arm/global_time...
>> +static int __cpuinit gt_clockevents_init(struct clock_event_device *clk) >> +{ >> + struct clock_event_device **this_cpu_clk; >> + int cpu = smp_processor_id(); >> + >> + clk->name = "ARM global timer clock event"; >> + clk->features = CLOCK_EVT_FEAT_PERIODIC |...
Just move that code into global_timer_of_register() and > also remove the #ifdef around CONFIG_OF and make the driver > depend on CONFIG_OF in Kconfig. > > After this you realize that all that business with > clk_register_clkdev() / clk_get_sys() is just pure surplus > baggade,...
> interrupts. The global timer is memory mapped in the private memory > region. > The global timer is accessible to all Cortex-A9 processors in the > cluster. Each Cortex-A9 processor has a private 64-bit comparator that > is used to assert a private interrupt when the global timer has ...
timer2 arm_global_timer 32k_counter / # echo 32k_counter > /sys/devices/system/clocksource/clocksource0/current_cloc ksource [ 102.194313] Unhandled fault: imprecise external abort (0x1406) at 0x0020ab5c [ 102.197862] pgd = ee22c000
> Doing this is not adding any value to the driver, because > 1. Currently the driver only support DT boot paths, in my previous RFC > patches, Arnd suggested to get rid of the header as all platforms are DT > now. In that case why do you have the separate global_timer_init() ...
+ select CLKSRC_ARM_GLOBAL_TIMER_SCHED_CLOCK if ARM_GLOBAL_TIMER +1 -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majord...@vger.kernel.org More majordomo info athttp://vger.kernel.org/majordomo-info.html...
Doing this is not adding any value to the driver, because 1. Currently the driver only support DT boot paths, in my previous RFC patches, Arnd suggested to get rid of the header as all platforms are DT now. 2. Passing device_node around is not adding any value w.r.t reducing ...