X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=wrapper%2Firqflags.h;h=7c33c137dd171990b7fce60573108e778e06440e;hb=9f36eaed6f91d5897924b551b44d1edd8cee00e2;hp=77f8382945f9ebc9ee6382932a82a7514a8a7054;hpb=79150a4903b5f31695fcd1d9655555ba6dc4bfa4;p=lttng-modules.git diff --git a/wrapper/irqflags.h b/wrapper/irqflags.h index 77f83829..7c33c137 100644 --- a/wrapper/irqflags.h +++ b/wrapper/irqflags.h @@ -1,28 +1,15 @@ -#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 */ +#ifndef _LTTNG_WRAPPER_IRQFLAGS_H +#define _LTTNG_WRAPPER_IRQFLAGS_H + #include #include @@ -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