Hello again.
I have the following code:
clock_t c_sum, j, p;
cputime_t j_tmp;
...
c_sum = cputime64_to_clock_t(task-utime) +
cputime64_to_clock_t(task-stime);
cur_j = jiffies;
j_tmp = jiffies64_to_cputime64(cur_j);
j = cputime64_to_clock_t(j_tmp);
p =
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On Fri, Aug 24, 2007 at 03:18:32AM +0200, Luka Napotnik wrote:
I'm new to kernel development and have some questions.
1. Apperently kernel doesn't support operations with floating-point
types. How can I then divide a number 265 with the number 7
Hello.
I'm new to kernel development and have some questions.
1. Apperently kernel doesn't support operations with floating-point
types. How can I then divide a number 265 with the number 7 if I can
divide only by 2 with right-shifting?
2. I'm trying to get the percentage of CPU used for a