Messages in this thread | | | From | "Pan, Harry" <> | Subject | Re: [PATCH] PM / suspend: measure the time of filesystem syncing | Date | Wed, 6 Feb 2019 14:52:06 +0000 |
| |
On Tue, 2019-02-05 at 12:55 +0100, Rafael J. Wysocki wrote: > > > + ktime_t start, end, elapsed; > > Why do you need three vars here? One should be sufficient. ... > > + start = ktime_get_boottime(); > > Why _boottime()? > Yes, I agree both comments.
BTW, The initial idea came from processes freezing, apology my sketchy imitation not considering the context well to choose a proper API.
-Harry
| |