The following patch makes the kernel code independent of the setimeofday() function by replacing the function ktime_get_real_ts64() with ktime_get_ts64(). The function calculates the interval between two successive calls to fmeter_update() and between these if a call to settimeofday() is called it would lead to erroneous calculation of the interval. The function ktime_get_ts64() is the monotonic wall-time clock that does an extra calculation to remove the effects of settimeofday(). Signed-off-by: Heena Sirwani <heenasirwani@xxxxxxxxx> --- kernel/cpuset.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/cpuset.c b/kernel/cpuset.c index c3e3aac..98cf976 100644 --- a/kernel/cpuset.c +++ b/kernel/cpuset.c @@ -1377,7 +1377,7 @@ static void fmeter_update(struct fmeter *fmp) u32 ticks; /* One should probably use get_seconds64().*/ - ktime_get_real_ts64(×pec); + ktime_get_ts64(×pec); now = timespec.tv_sec; ticks = now - fmp->time; -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe cgroups" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html