RE: error: impossible constraint in 'asm' when compiling kernel code with -O0 option

2022-01-19 Thread Chan Kim
Hi, Today I found https://stackoverflow.com/questions/5580140/is-there-a-way-to-tell-gcc-not-t o-optimise-a-particular-piece-of-code. So for functions you want to debug with -O0 option, place #pragma GCC push_options #pragma GCC optimize ("O0") In front of the function, and place #pragma

Re: About the kernel configuration(CONFIG_CPU_FREQ and CONFIG_CPU_IDLE.)

2022-01-19 Thread 孙世龙 sunshilong
Updated: I check the frequency of the CPU by `cat /proc/cpuinfo`. On Wed, Jan 19, 2022 at 9:23 AM 孙世龙 sunshilong wrote: > Hi, list > I am using Linux 5.4.78 with PREEMPT_RT patch. > Hardware name: UNO-2372G-J021AE. > > It's strange that the frequency of the CPU is not constant(i.e. > not fixed