Reputation: 8260
I know how to query the cpu type in C code using the sys/systemcfg.h __power_7() macro. Is there a handy command that also provides this info?
Upvotes: 2
Views: 1484
Reputation: 4451
You can use "lsattr -El proc0":
# lsattr -El proc0
frequency 3220000000 Processor Speed False
smt_enabled true Processor SMT enabled False
smt_threads 4 Processor SMT threads False
state enable Processor state False
type PowerPC_POWER7 Processor type False
Upvotes: 1