| 420 | } |
| 421 | |
| 422 | static int |
| 423 | cpufreq_get_frequency(device_t dev) |
| 424 | { |
| 425 | struct cf_setting set; |
| 426 | |
| 427 | if (CPUFREQ_DRV_GET(dev, &set) != 0) |
| 428 | return (-1); |
| 429 | |
| 430 | return (set.freq); |
| 431 | } |
| 432 | |
| 433 | /* Returns the index into *levels with the match */ |
| 434 | static int |