ciao-scheduler: split heartBeat function
ciao-scheduler: split heartBeat function

Gocyclo isn't happy with this big function.  There are two clear sections
to the function present, so split those out for less complexity.

Signed-off-by: Tim Pepper <8dbd764830e941d092a1cb7fa16423169acc0b04@linux.intel.com>

jorgevgut/ciao,tpepper/ciao,chavafg/ciao,wcwxyz/ciao,kaccardi/ciao,tpepper/ciao,mcastelino/ciao,jorgevgut/ciao,chavafg/ciao,kaccardi/ciao,matthewrsj/ciao,matthewrsj/ciao,mcastelino/ciao,obedmr/ciao,tpepper/ciao,erick0z/ciao,ciao-project/ciao,mrkz/ciao,rbradford/ciao,erick0z/ciao,leoswaldo/ciao,jorgevgut/ciao,wcwxyz/ciao,matthewrsj/ciao,01org/ciao,wcwxyz/ciao,rbradford/ciao,markdryan/ciao,obedmr/ciao,leoswaldo/ciao,markdryan/ciao,mrkz/ciao,obedmr/ciao,01org/ciao,erick0z/ciao,mrkz/ciao,mcastelino/ciao,leoswaldo/ciao,ciao-project/ciao