| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * (C) 2010,2011 Thomas Renninger <trenn@suse.de>, Novell Inc |
|---|
| 3 | | - * |
|---|
| 4 | | - * Licensed under the terms of the GNU GPL License version 2. |
|---|
| 5 | | - * |
|---|
| 6 | 4 | */ |
|---|
| 7 | 5 | |
|---|
| 8 | 6 | #include <stdio.h> |
|---|
| .. | .. |
|---|
| 55 | 53 | dprint("CPU %d - State: %d - Val: %llu\n", |
|---|
| 56 | 54 | cpu, state, previous_count[cpu][state]); |
|---|
| 57 | 55 | } |
|---|
| 58 | | - }; |
|---|
| 56 | + } |
|---|
| 59 | 57 | return 0; |
|---|
| 60 | 58 | } |
|---|
| 61 | 59 | |
|---|
| .. | .. |
|---|
| 74 | 72 | dprint("CPU %d - State: %d - Val: %llu\n", |
|---|
| 75 | 73 | cpu, state, previous_count[cpu][state]); |
|---|
| 76 | 74 | } |
|---|
| 77 | | - }; |
|---|
| 75 | + } |
|---|
| 78 | 76 | return 0; |
|---|
| 79 | 77 | } |
|---|
| 80 | 78 | |
|---|
| .. | .. |
|---|
| 174 | 172 | cpuidle_cstates[num].id = num; |
|---|
| 175 | 173 | cpuidle_cstates[num].get_count_percent = |
|---|
| 176 | 174 | cpuidle_get_count_percent; |
|---|
| 177 | | - }; |
|---|
| 175 | + } |
|---|
| 178 | 176 | |
|---|
| 179 | 177 | /* Free this at program termination */ |
|---|
| 180 | 178 | previous_count = malloc(sizeof(long long *) * cpu_count); |
|---|
| .. | .. |
|---|
| 209 | 207 | .stop = cpuidle_stop, |
|---|
| 210 | 208 | .do_register = cpuidle_register, |
|---|
| 211 | 209 | .unregister = cpuidle_unregister, |
|---|
| 212 | | - .needs_root = 0, |
|---|
| 210 | + .flags.needs_root = 0, |
|---|
| 213 | 211 | .overflow_s = UINT_MAX, |
|---|
| 214 | 212 | }; |
|---|