| 4939 | } |
| 4940 | |
| 4941 | bool SystemInformationImplementation::QuerySolarisProcessor() |
| 4942 | { |
| 4943 | if (!this->QueryProcessorBySysconf()) { |
| 4944 | return false; |
| 4945 | } |
| 4946 | |
| 4947 | // Parse values |
| 4948 | this->CPUSpeedInMHz = static_cast<float>( |
| 4949 | atoi(this->ParseValueFromKStat("-s clock_MHz").c_str())); |
| 4950 | |
| 4951 | // Chip family |
| 4952 | this->ChipID.Family = 0; |
| 4953 | |
| 4954 | // Chip Model |
| 4955 | this->ChipID.ProcessorName = this->ParseValueFromKStat("-s cpu_type"); |
| 4956 | this->ChipID.Model = 0; |
| 4957 | |
| 4958 | // Chip Vendor |
| 4959 | if (this->ChipID.ProcessorName != "i386") { |
| 4960 | this->ChipID.Vendor = "Sun"; |
| 4961 | this->FindManufacturer(); |
| 4962 | } |
| 4963 | |
| 4964 | return true; |
| 4965 | } |
| 4966 | |
| 4967 | /** Querying for system information from Haiku OS */ |
| 4968 | bool SystemInformationImplementation::QueryHaikuInfo() |
no test coverage detected