| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * (C) 2001 Dave Jones, Arjan van de ven. |
|---|
| 3 | 4 | * (C) 2002 - 2003 Dominik Brodowski <linux@brodo.de> |
|---|
| 4 | 5 | * |
|---|
| 5 | | - * Licensed under the terms of the GNU GPL License version 2. |
|---|
| 6 | 6 | * Based upon reverse engineered information, and on Intel documentation |
|---|
| 7 | 7 | * for chipsets ICH2-M and ICH3-M. |
|---|
| 8 | 8 | * |
|---|
| .. | .. |
|---|
| 243 | 243 | unsigned int speed; |
|---|
| 244 | 244 | |
|---|
| 245 | 245 | /* You're supposed to ensure CPU is online. */ |
|---|
| 246 | | - if (smp_call_function_single(cpu, get_freq_data, &speed, 1) != 0) |
|---|
| 247 | | - BUG(); |
|---|
| 246 | + BUG_ON(smp_call_function_single(cpu, get_freq_data, &speed, 1)); |
|---|
| 248 | 247 | |
|---|
| 249 | 248 | pr_debug("detected %u kHz as current frequency\n", speed); |
|---|
| 250 | 249 | return speed; |
|---|
| .. | .. |
|---|
| 320 | 319 | }; |
|---|
| 321 | 320 | |
|---|
| 322 | 321 | static const struct x86_cpu_id ss_smi_ids[] = { |
|---|
| 323 | | - { X86_VENDOR_INTEL, 6, 0xb, }, |
|---|
| 324 | | - { X86_VENDOR_INTEL, 6, 0x8, }, |
|---|
| 325 | | - { X86_VENDOR_INTEL, 15, 2 }, |
|---|
| 322 | + X86_MATCH_VENDOR_FAM_MODEL(INTEL, 6, 0x8, 0), |
|---|
| 323 | + X86_MATCH_VENDOR_FAM_MODEL(INTEL, 6, 0xb, 0), |
|---|
| 324 | + X86_MATCH_VENDOR_FAM_MODEL(INTEL, 15, 0x2, 0), |
|---|
| 326 | 325 | {} |
|---|
| 327 | 326 | }; |
|---|
| 328 | | -#if 0 |
|---|
| 329 | | -/* Autoload or not? Do not for now. */ |
|---|
| 330 | | -MODULE_DEVICE_TABLE(x86cpu, ss_smi_ids); |
|---|
| 331 | | -#endif |
|---|
| 332 | 327 | |
|---|
| 333 | 328 | /** |
|---|
| 334 | 329 | * speedstep_init - initializes the SpeedStep CPUFreq driver |
|---|