This is just a fix for the NCSA request for perfctr 1.6 backwards compatibility. The backfix that was in the release can't have been working. Calling PAPI_get_virt_{cyc,usec} must have resulted in an infinite loop when PERFCTR16 was set at compile time. Now get_virt_usec uses times(2) as previously for PERFCTR16 while for other PERFCTR versions it uses get_virt_cyc which reads the virtual TSC.
This is just a fix for the NCSA request for perfctr 1.6 backwards
compatibility. The backfix that was in the release can't have been
working. Calling PAPI_get_virt_{cyc,usec} must have resulted in
an infinite loop when PERFCTR16 was set at compile time. Now
get_virt_usec uses times(2) as previously for PERFCTR16 while for
other PERFCTR versions it uses get_virt_cyc which reads the virtual
TSC.

pyrovski/papi,pyrovski/papi,arm-hpc/papi,arm-hpc/papi,arm-hpc/papi,pyrovski/papi,arm-hpc/papi,arm-hpc/papi,pyrovski/papi,pyrovski/papi,pyrovski/papi,arm-hpc/papi,pyrovski/papi,pyrovski/papi,arm-hpc/papi