- All of proc_compare needs sched_lock, so hold it for the for loop that   calls it rather than obtaining and releasing it a lot in proc_compare. - Collect all of the data gathering and stick it just after the   proc_compare loop.  This way, we only have to grab sched_lock once now   when handling SIGINFO.  All the printf's are done after the values are   calculated.
- All of proc_compare needs sched_lock, so hold it for the for loop that
  calls it rather than obtaining and releasing it a lot in proc_compare.
- Collect all of the data gathering and stick it just after the
  proc_compare loop.  This way, we only have to grab sched_lock once now
  when handling SIGINFO.  All the printf's are done after the values are
  calculated.

Submitted mostly by:	bde

jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase