diff options
author | Reza Arbab <arbab@linux.ibm.com> | 2019-07-17 15:44:22 -0500 |
---|---|---|
committer | Oliver O'Halloran <oohall@gmail.com> | 2019-07-26 15:30:21 +1000 |
commit | 8279e529d524bce56fca20f6ece0e6f92b0f7aba (patch) | |
tree | 34eca8ed940bc7d791f57b72178a86fa43463d45 /include/cache-p9.h | |
parent | 6db75f1d8e91548a52143949f2b5c49f1e87d608 (diff) | |
download | skiboot-8279e529d524bce56fca20f6ece0e6f92b0f7aba.zip skiboot-8279e529d524bce56fca20f6ece0e6f92b0f7aba.tar.gz skiboot-8279e529d524bce56fca20f6ece0e6f92b0f7aba.tar.bz2 |
npu2: Prepare purge_l2_l3_caches() for reuse
Move this to a separate compilation unit with its own header, for reuse.
The code formerly in npu2.c is copied verbatim. The #defines formerly in
npu2-regs.h have been reformatted and changed to use PPC_BITMASK()
instead of multiple consecutive PPC_BIT()s.
Signed-off-by: Reza Arbab <arbab@linux.ibm.com>
Reviewed-by: Andrew Donnellan <ajd@linux.ibm.com>
Reviewed-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Reviewed-by: Stewart Smith <stewart@linux.ibm.com>
Signed-off-by: Oliver O'Halloran <oohall@gmail.com>
Diffstat (limited to 'include/cache-p9.h')
-rw-r--r-- | include/cache-p9.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/include/cache-p9.h b/include/cache-p9.h new file mode 100644 index 0000000..e763433 --- /dev/null +++ b/include/cache-p9.h @@ -0,0 +1,22 @@ +/* Copyright 2019 IBM Corp. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef __CACHE_P9_H +#define __CACHE_P9_H + +int64_t purge_l2_l3_caches(void); + +#endif |