**** BEGIN LOGGING AT Sun Jun 23 02:59:57 2019 Jun 23 12:35:12 ds2: from where the clock freq value is taken in Linux? Jun 23 14:09:18 julieng: xen also tries to read code frequency from dt? Jun 23 14:10:23 xen/arch/arm/tim.c : preinit_dt_xen_time(void) Jun 23 14:52:04 hm, I can see that in xen it tries to read cpu_khz from CNTFRQ_EL0 if it is not present in the device tree. Jun 23 15:06:00 abhishek_ zeekhuge Is there any way to pass a variable to the __delay_cycles() function? The function expects an integer constant. I tried to use a for loop and put __delay_cycles(1) inside it but doesn't give an accurate result as the loop adds some overhead Jun 23 15:08:41 I want to use it to control the pwm voltage Jun 23 15:36:03 pratimugale : Use a NOP inside a for loop, look at the resultant assembly code and fine tune it Jun 23 17:08:25 abhishek_: NOP would be added in the assembly code right? For some reason the for loop is working properly right now. I'll test more to see whats going on Jun 23 17:16:39 Can NOP be added in the c code? Jun 23 19:44:37 pratimugale: clpru can generate assembly code for you, from the C code. Although IIRC, it will be quite difficult to understand that generated code. Jun 23 19:59:28 zeekhuge: Yes, the generated .asm file is quite big but is helpful to look at **** ENDING LOGGING AT Mon Jun 24 02:59:57 2019