X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=wrapper%2Firqflags.h;h=6e5ac63da51ffa7e14c90700293601d3d87d093a;hb=e2ea881152a730f3a1ae9dca443dbdbe851ef682;hp=77f8382945f9ebc9ee6382932a82a7514a8a7054;hpb=79150a4903b5f31695fcd1d9655555ba6dc4bfa4;p=lttng-modules.git diff --git a/wrapper/irqflags.h b/wrapper/irqflags.h index 77f83829..6e5ac63d 100644 --- a/wrapper/irqflags.h +++ b/wrapper/irqflags.h @@ -1,29 +1,16 @@ -#ifndef _LTTNG_WRAPPER_IRQFLAGS_H -#define _LTTNG_WRAPPER_IRQFLAGS_H - -/* +/* SPDX-License-Identifier: (GPL-2.0 or LGPL-2.1) + * * wrapper/irqflags.h * * wrapper around IRQ flags. * * Copyright (C) 2015 Mathieu Desnoyers - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; only - * version 2.1 of the License. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ -#include +#ifndef _LTTNG_WRAPPER_IRQFLAGS_H +#define _LTTNG_WRAPPER_IRQFLAGS_H + +#include #include #ifdef CONFIG_X86 @@ -33,7 +20,7 @@ int lttng_regs_irqs_disabled(struct pt_regs *regs) { unsigned long flags = regs->flags; - return arch_irqs_disabled_flags(flags); + return raw_irqs_disabled_flags(flags); } #else