GCC Code Coverage Report


Directory: ./
File: src/ppd-driver-cpu.c
Date: 2025-03-30 20:28:01
Exec Total Coverage
Lines: 10 10 100.0%
Functions: 5 5 100.0%
Branches: 4 5 80.0%

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 142 times.
✓ Branch 1 taken 1663 times.
✓ Branch 2 taken 142 times.
✓ Branch 3 taken 142 times.
✗ Branch 4 not taken.
4178 G_DEFINE_TYPE (PpdDriverCpu, ppd_driver_cpu, PPD_TYPE_DRIVER)
28
29 static void
30 316 ppd_driver_cpu_finalize (GObject *object)
31 {
32 316 G_OBJECT_CLASS (ppd_driver_cpu_parent_class)->finalize (object);
33 316 }
34
35 static void
36 142 ppd_driver_cpu_class_init (PpdDriverCpuClass *klass)
37 {
38 142 GObjectClass *object_class;
39
40 142 object_class = G_OBJECT_CLASS (klass);
41 142 object_class->finalize = ppd_driver_cpu_finalize;
42 }
43
44 static void
45 316 ppd_driver_cpu_init (PpdDriverCpu *self)
46 {
47 316 }
48