[haiku-development] Re: cpu_clock_speed -- why gone?

  • From: pete.goodeve@xxxxxxxxxxxx
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Thu, 16 Mar 2017 17:27:24 -0700

On Thu, Mar 16, 2017 at 06:28:41PM -0400, Brian Hill wrote:

pete.goodeve@xxxxxxxxxxxx wrote:
What puzzles me greatly is that the BeOS version and an earlier
Haiku compile, running in a current Haiku, both seem to be getting
the clock value, as they have perfectly good rotation/translation.
How is this possible?
Got me, but AboutSystem uses get_rounded_cpu_speed() from cpu_type.h for 
the value it displays.

Hmm.  I see that cpu_type.h is private, so maybe not a good idea to use it in 
an app....

Thinking about it, I'll bet that the older ArtPaint is just getting a random 
value (using
the original system_info) that just happens to suit!  I looked at the original 
BeOS and
current Haiku structs, and they're totally different afte the first two 
entries.  Not
sure how they got away with that -- thought to intent was to keep BeOS 
compatibility!

        -- Pete --

Other related posts: