Con Kolivas wrote:+ if (weighted_cpuload(cpu) >= SCHED_LOAD_SCALE)I think that you may need to take into account the contribution to the load by your swap prefetching thread when it calls this function otherwise it could cause an incorrect (from your point of view) positive return value. If the thread has a positive nice value this comment can probably be ignored.
+ return 1;
Attachment:
pgp00000.pgp
Description: PGP signature