[haiku-development] [PATCH] ticket 3541 and 4427 - cpu identification

  • From: Hervé W. <h_o_w_@xxxxxxxxxxx>
  • To: <haiku-development@xxxxxxxxxxxxx>
  • Date: Thu, 17 Sep 2009 16:57:41 +0200




Hi,

Tickets 3541 and 4427 are a bit cosmetic in nature.
Instead of specifying Core 2 Extreme for all 45nm Core2's, attached patch 
defaults to Core 2.


Is further differentiation desired? like showing Extreme or Xeon if applicable?
my idea would be to add a call to get_cpu_struct() 
(found in: headers/private/kernel/cpu.h )
in get_cpu_model_string()
(in: headers/private/shared/cpu_type.h )
and searching the arch.model_name field of the result for xeon and extreme and 
based on the result:
- add nothing to 'Core 2' (for the Core 2 Duo's and Quad's)
- add ' (Xeon)'
- add ' (Extreme)'

I could then do the same for the Xeon from ticket 2002 and any other Xeon.


-V

_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/


Other related posts: