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

  • From: kallisti5 <kallisti5@xxxxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Thu, 16 Mar 2017 21:06:31 -0500

On 2017-03-16 19:27, pete.goodeve@xxxxxxxxxxxx wrote:

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!

I noticed this the other day when adding Ryzen identification support.
All the cpu identification stuff was reworked with Pawel's SMP + scheduler
redesign.

It's definitely a lot better now... but likely throws a wrench into
Be compatibility.

We *really* need to get R1 out the door to have a stable Be ABI branch.

The haikuporter buildmaster is 90% ready and deployed to baron.
USB 3 / XHCI is *rough* and in most modern hardware.

Lets hope a GSOC student comes along willing to wrangle XHCI.
(A bunch of new modern controllers don't even do USB 2 backwards
compatibility means Haiku won't boot from USB :-O)

 -- Alex

Other related posts: