Line | Branch | Exec | Source |
---|---|---|---|
1 | /* | ||
2 | * Copyright (c) 2023 Mario Limonciello <superm1@gmail.com> | ||
3 | * | ||
4 | * This program is free software; you can redistribute it and/or modify it | ||
5 | * under the terms of the GNU General Public License version 3 as published by | ||
6 | * the Free Software Foundation. | ||
7 | * | ||
8 | */ | ||
9 | |||
10 | #define G_LOG_DOMAIN "CpuDriver" | ||
11 | |||
12 | #include "ppd-driver-cpu.h" | ||
13 | |||
14 | /** | ||
15 | * SECTION:ppd-driver-cpu | ||
16 | * @Short_description: CPU Drivers | ||
17 | * @Title: CPU Profile Drivers | ||
18 | * | ||
19 | * Profile drivers are the implementation of the different profiles for | ||
20 | * the whole system. A driver will need to implement support for `power-saver` | ||
21 | * and `balanced` at a minimum. | ||
22 | * | ||
23 | * CPU drivers are typically used to change specifically the CPU efficiency | ||
24 | * to match the desired platform state. | ||
25 | */ | ||
26 | |||
27 |
4/5✓ Branch 0 taken 130 times.
✓ Branch 1 taken 1424 times.
✓ Branch 2 taken 130 times.
✓ Branch 3 taken 130 times.
✗ Branch 4 not taken.
|
3628 | G_DEFINE_TYPE (PpdDriverCpu, ppd_driver_cpu, PPD_TYPE_DRIVER) |
28 | |||
29 | static void | ||
30 | 268 | ppd_driver_cpu_finalize (GObject *object) | |
31 | { | ||
32 | 268 | G_OBJECT_CLASS (ppd_driver_cpu_parent_class)->finalize (object); | |
33 | 268 | } | |
34 | |||
35 | static void | ||
36 | 130 | ppd_driver_cpu_class_init (PpdDriverCpuClass *klass) | |
37 | { | ||
38 | 130 | GObjectClass *object_class; | |
39 | |||
40 | 130 | object_class = G_OBJECT_CLASS (klass); | |
41 | 130 | object_class->finalize = ppd_driver_cpu_finalize; | |
42 | } | ||
43 | |||
44 | static void | ||
45 | 268 | ppd_driver_cpu_init (PpdDriverCpu *self) | |
46 | { | ||
47 | 268 | } | |
48 |