[LTP] [PATCH V3] controllers/pids: Add new testcases

Cedric Hnyda chnyda@suse.com
Wed Nov 25 11:34:11 CET 2015


Hi,

On 11/25/2015 10:20 AM, Alexey Kodanev wrote:
>> +
>> +    while (1) {
>> +    }
>
> Is it necessary to add a busy loop to completely load CPU? If we only 
> wait, I would add a sleep, something like
>
> while (1)
>      usleep(10);
>

You are absolutely right, it is not needed at all to completely load CPU.
Maybe it would also be better to use sleep rather than usleep.

Best regards,
Cedric

-- 
Cedric Hnyda



More information about the Ltp mailing list