aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorVasant Hegde <hegdevasant@linux.vnet.ibm.com>2018-04-23 12:15:31 +0530
committerStewart Smith <stewart@linux.ibm.com>2018-04-30 19:04:42 -0500
commit6421fc56dc289c8d14a1ce9eddbb88d3687fbb77 (patch)
tree1e62f2f3795e0476f092107d76a68b1a432e7394 /include
parent6739c890a2f298ed382b9557840a493fb97df44b (diff)
downloadskiboot-6421fc56dc289c8d14a1ce9eddbb88d3687fbb77.zip
skiboot-6421fc56dc289c8d14a1ce9eddbb88d3687fbb77.tar.gz
skiboot-6421fc56dc289c8d14a1ce9eddbb88d3687fbb77.tar.bz2
Move P8 timer code to separate file
Lets move P8 timer support code from slw.c to sbe-p8.c (as suggested by BenH). There is a difference between timer support in P8 and P9. Hence I think it makes sense to name it as sbe-p8.c. Note that this is pure code movement and renaming functions/variables. No functionality changes. Suggested-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com> Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
Diffstat (limited to 'include')
-rw-r--r--include/sbe-p8.h28
-rw-r--r--include/skiboot.h6
2 files changed, 28 insertions, 6 deletions
diff --git a/include/sbe-p8.h b/include/sbe-p8.h
new file mode 100644
index 0000000..785c2cd
--- /dev/null
+++ b/include/sbe-p8.h
@@ -0,0 +1,28 @@
+/* Copyright 2013-2018 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 __SBE_P8_H
+#define __SBE_P8_H
+
+/* P8 SBE update timer function */
+extern void p8_sbe_update_timer_expiry(uint64_t new_target);
+
+/* Is SBE timer available ? */
+extern bool p8_sbe_timer_ok(void);
+
+/* Initialize SBE timer */
+extern void p8_sbe_init_timer(void);
+
+#endif /* __SBE_P8_H */
diff --git a/include/skiboot.h b/include/skiboot.h
index 601eab0..b4bdf37 100644
--- a/include/skiboot.h
+++ b/include/skiboot.h
@@ -323,12 +323,6 @@ extern void xive_late_init(void);
/* SLW reinit function for switching core settings */
extern int64_t slw_reinit(uint64_t flags);
-/* SLW update timer function */
-extern void slw_update_timer_expiry(uint64_t new_target);
-
-/* Is SLW timer available ? */
-extern bool slw_timer_ok(void);
-
/* Patch SPR in SLW image */
extern int64_t opal_slw_set_reg(uint64_t cpu_pir, uint64_t sprn, uint64_t val);