We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c61e572 commit 16e1583Copy full SHA for 16e1583
drivers/perf/arm_cspmu/arm_cspmu.c
@@ -1078,12 +1078,14 @@ static int arm_cspmu_request_irq(struct arm_cspmu *cspmu)
1078
static inline int arm_cspmu_find_cpu_container(int cpu, u32 container_uid)
1079
{
1080
u32 acpi_uid;
1081
- struct device *cpu_dev = get_cpu_device(cpu);
1082
- struct acpi_device *acpi_dev = ACPI_COMPANION(cpu_dev);
+ struct device *cpu_dev;
+ struct acpi_device *acpi_dev;
1083
1084
+ cpu_dev = get_cpu_device(cpu);
1085
if (!cpu_dev)
1086
return -ENODEV;
1087
1088
+ acpi_dev = ACPI_COMPANION(cpu_dev);
1089
while (acpi_dev) {
1090
if (!strcmp(acpi_device_hid(acpi_dev),
1091
ACPI_PROCESSOR_CONTAINER_HID) &&
0 commit comments