linux-generic: cpu: fix cycle lost while cycle counter overflow
linux-generic: cpu: fix cycle lost while cycle counter overflow

When counter reaches it's counter value, the next clock cycle will
cause it to roll over to zero. As result the counter spends 1
additional cycle to switch from UINT64_MAX to 0, it should be
taken into account with diff function.

Signed-off-by: Ivan Khoronzhuk <15ad2a232c436ab54d1b78ef06a09c4cd03911f0@linaro.org>
Reviewed-by: Petri Savolainen <d528fd253b9aaf78fa72edbcc6249e82047f6ce6@nokia.com>
Signed-off-by: Maxim Uvarov <db4d16e02ae2d7493db430203537da8b2e34f290@linaro.org>

erachmi/odp,dkrot/odp,ravineet-singh/odp,ravineet-singh/odp,dkrot/odp,nmorey/odp,nmorey/odp,ravineet-singh/odp,nmorey/odp,mike-holmes-linaro/odp,erachmi/odp,mike-holmes-linaro/odp,dkrot/odp,mike-holmes-linaro/odp,mike-holmes-linaro/odp,ravineet-singh/odp,nmorey/odp,erachmi/odp,erachmi/odp,dkrot/odp