Coverage Report

Created: 2017-10-25 09:10

/root/src/xen/xen/include/asm/cpuidle.h
Line
Count
Source
1
#ifndef __ASM_X86_CPUIDLE_H__
2
#define __ASM_X86_CPUIDLE_H__
3
4
#include <xen/cpuidle.h>
5
#include <xen/notifier.h>
6
#include <xen/sched.h>
7
#include <xen/sched-if.h>
8
9
extern struct acpi_processor_power *processor_powers[];
10
11
extern void (*pm_idle_save)(void);
12
13
bool lapic_timer_init(void);
14
extern void (*lapic_timer_off)(void);
15
extern void (*lapic_timer_on)(void);
16
17
extern uint64_t (*cpuidle_get_tick)(void);
18
19
int mwait_idle_init(struct notifier_block *);
20
int cpuidle_init_cpu(unsigned int cpu);
21
void default_dead_idle(void);
22
void acpi_dead_idle(void);
23
void trace_exit_reason(u32 *irq_traced);
24
void update_idle_stats(struct acpi_processor_power *,
25
                       struct acpi_processor_cx *, uint64_t, uint64_t);
26
void update_last_cx_stat(struct acpi_processor_power *,
27
                         struct acpi_processor_cx *, uint64_t);
28
29
/*
30
 * vcpu is urgent if vcpu is polling event channel
31
 *
32
 * if urgent vcpu exists, CPU should not enter deep C state
33
 */
34
static inline int sched_has_urgent_vcpu(void)
35
2.07M
{
36
2.07M
    return atomic_read(&this_cpu(schedule_data).urgent_count);
37
2.07M
}
Unexecuted instantiation: domain.c:sched_has_urgent_vcpu
Unexecuted instantiation: cpu_idle.c:sched_has_urgent_vcpu
mwait-idle.c:sched_has_urgent_vcpu
Line
Count
Source
35
2.07M
{
36
2.07M
    return atomic_read(&this_cpu(schedule_data).urgent_count);
37
2.07M
}
38
39
#endif /* __X86_ASM_CPUIDLE_H__ */