|
From: | Almudena Garcia |
Subject: | Re: [PATCH] Add last processor to process stat |
Date: | Tue, 29 Oct 2019 00:05:09 +0100 |
Almudena Garcia, le lun. 28 oct. 2019 20:16:33 +0100, a ecrit:
> + /* if the structure read doesn't include last_processor field, set It to 0 */
> + if(thcount >= THREAD_SCHED_INFO_COUNT){
> + thds[i]->last_processor = 0;
> + }
That'd rather be if(thcount < THREAD_SCHED_INFO_COUNT), and better make
it akin to other additions: if (thcount < 8).
Samuel
add_lastprocessor_v6.patch
Description: Text Data
[Prev in Thread] | Current Thread | [Next in Thread] |