Resetting last_time and last_cpu whenever process restarts
Resetting last_time and last_cpu whenever process restarts

last_time and last_cpu is used to calculate cpu_share which becomes negative
after a process is restarted. We need to reset those variables in case of a
process restart.

Change-Id: I20fde7c75561bd8fd509077bcdb94dcb3ebf3b21
Closes-Bug: #1691952
(cherry picked from commit e17fe5a8530ef2f84836c23ad93f25154e7b0e71)

rombie/contrail-controller,nischalsheth/contrail-controller,rombie/contrail-controller,eonpatapon/contrail-controller,nischalsheth/contrail-controller,eonpatapon/contrail-controller,eonpatapon/contrail-controller,nischalsheth/contrail-controller,rombie/contrail-controller,nischalsheth/contrail-controller,eonpatapon/contrail-controller,nischalsheth/contrail-controller,rombie/contrail-controller,rombie/contrail-controller,eonpatapon/contrail-controller,eonpatapon/contrail-controller,nischalsheth/contrail-controller,rombie/contrail-controller,rombie/contrail-controller,nischalsheth/contrail-controller,nischalsheth/contrail-controller,eonpatapon/contrail-controller