mirror of
https://github.com/torvalds/linux.git
synced 2024-11-24 05:02:12 +00:00
31 lines
700 B
C
31 lines
700 B
C
|
/*
|
||
|
* linux/kernel/irq/timings.c
|
||
|
*
|
||
|
* Copyright (C) 2016, Linaro Ltd - Daniel Lezcano <daniel.lezcano@linaro.org>
|
||
|
*
|
||
|
* This program is free software; you can redistribute it and/or modify
|
||
|
* it under the terms of the GNU General Public License version 2 as
|
||
|
* published by the Free Software Foundation.
|
||
|
*
|
||
|
*/
|
||
|
#include <linux/percpu.h>
|
||
|
#include <linux/static_key.h>
|
||
|
#include <linux/interrupt.h>
|
||
|
#include <linux/irq.h>
|
||
|
|
||
|
#include "internals.h"
|
||
|
|
||
|
DEFINE_STATIC_KEY_FALSE(irq_timing_enabled);
|
||
|
|
||
|
DEFINE_PER_CPU(struct irq_timings, irq_timings);
|
||
|
|
||
|
void irq_timings_enable(void)
|
||
|
{
|
||
|
static_branch_enable(&irq_timing_enabled);
|
||
|
}
|
||
|
|
||
|
void irq_timings_disable(void)
|
||
|
{
|
||
|
static_branch_disable(&irq_timing_enabled);
|
||
|
}
|