Coverage Report

Created: 2017-10-25 09:10

/root/src/xen/xen/common/irq.c
Line
Count
Source (jump to first uncovered line)
1
#include <xen/irq.h>
2
#include <xen/errno.h>
3
4
int init_one_irq_desc(struct irq_desc *desc)
5
91
{
6
91
    int err;
7
91
8
91
    if (irq_desc_initialized(desc))
9
0
        return 0;
10
91
11
91
    if ( !alloc_cpumask_var(&desc->affinity) )
12
0
        return -ENOMEM;
13
91
14
91
    desc->status = IRQ_DISABLED;
15
91
    desc->handler = &no_irq_type;
16
91
    spin_lock_init(&desc->lock);
17
91
    cpumask_setall(desc->affinity);
18
91
    INIT_LIST_HEAD(&desc->rl_link);
19
91
20
91
    err = arch_init_one_irq_desc(desc);
21
91
    if ( err )
22
0
    {
23
0
        free_cpumask_var(desc->affinity);
24
0
        desc->handler = NULL;
25
0
    }
26
91
27
91
    return err;
28
91
}
29
30
void no_action(int cpl, void *dev_id, struct cpu_user_regs *regs)
31
0
{
32
0
}
33
34
void irq_actor_none(struct irq_desc *desc)
35
0
{
36
0
}
37
38
unsigned int irq_startup_none(struct irq_desc *desc)
39
7
{
40
7
    return 0;
41
7
}