I have a kernel module, which is monitoring CPU load for overload detection..
But i am not getting an exact api or way to calculate CPU load from kernel module.
/proc/loadavg and /proc/stat ae 2 options.. But not a good way if open this file from my module.
Which is the best option or way to calculate CPU load, so as my overload module will function correctly..
Thank you in advance...