[COMMON] sched/{fair,rt}: copy sched avg data across switches between class
authorJohnlay Park <jonglae.park@samsung.com>
Tue, 27 Feb 2018 12:24:13 +0000 (21:24 +0900)
committerChungwoo Park <cww.park@samsung.com>
Mon, 21 May 2018 08:33:11 +0000 (17:33 +0900)
commit6c3c37677014a877bcb0ea72cb44408f1c0a66ef
treec868300e6f11756e44a0afdd12c5fb39b99cf8ed
parent919856a53fb5ec1839d5a41b7b062e0a3bd85fd1
[COMMON] sched/{fair,rt}: copy sched avg data across switches between class

When switching a task between FAIR and RT, its sched avg data
has to be copied over, so that per-class PELT always works on
updated data.

Refer the I7561e16ceca2635a50f57e9361d351f22f991651

Change-Id: Id4f7c96c87c97441901b8dd8110ba2aed9ccf247
Signed-off-by: Johnlay Park <jonglae.park@samsung.com>
kernel/sched/fair.c
kernel/sched/rt.c