| .. | .. |
|---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Copyright (C) 2012 Regents of the University of California |
|---|
| 3 | | - * |
|---|
| 4 | | - * This program is free software; you can redistribute it and/or |
|---|
| 5 | | - * modify it under the terms of the GNU General Public License |
|---|
| 6 | | - * as published by the Free Software Foundation, version 2. |
|---|
| 7 | | - * |
|---|
| 8 | | - * This program is distributed in the hope that it will be useful, |
|---|
| 9 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 10 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|---|
| 11 | | - * GNU General Public License for more details. |
|---|
| 12 | 4 | */ |
|---|
| 13 | 5 | |
|---|
| 14 | 6 | #ifndef _ASM_RISCV_BITOPS_H |
|---|
| .. | .. |
|---|
| 22 | 14 | #include <linux/irqflags.h> |
|---|
| 23 | 15 | #include <asm/barrier.h> |
|---|
| 24 | 16 | #include <asm/bitsperlong.h> |
|---|
| 25 | | - |
|---|
| 26 | | -#ifndef smp_mb__before_clear_bit |
|---|
| 27 | | -#define smp_mb__before_clear_bit() smp_mb() |
|---|
| 28 | | -#define smp_mb__after_clear_bit() smp_mb() |
|---|
| 29 | | -#endif /* smp_mb__before_clear_bit */ |
|---|
| 30 | 17 | |
|---|
| 31 | 18 | #include <asm-generic/bitops/__ffs.h> |
|---|
| 32 | 19 | #include <asm-generic/bitops/ffz.h> |
|---|