irq.c (455575533c7aa294d3c0284d59a77ae9a60c0537) | irq.c (6601ec1c2ba929430f5585ce7f9d9960b0e0a01d) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-or-later 2/* 3 * Derived from arch/i386/kernel/irq.c 4 * Copyright (C) 1992 Linus Torvalds 5 * Adapted from arch/i386 by Gary Thomas 6 * Copyright (C) 1995-1996 Gary Thomas (gdt@linuxppc.org) 7 * Updated and modified by Cort Dougan <cort@fsmlabs.com> 8 * Copyright (C) 1996-2001 Cort Dougan --- 90 unchanged lines hidden (view full) --- 99 __asm__ __volatile__("lbz %0,%1(13)" 100 : "=r" (happened) : "i" (offsetof(struct paca_struct, irq_happened))); 101 102 return happened; 103} 104 105static inline notrace int decrementer_check_overflow(void) 106{ | 1// SPDX-License-Identifier: GPL-2.0-or-later 2/* 3 * Derived from arch/i386/kernel/irq.c 4 * Copyright (C) 1992 Linus Torvalds 5 * Adapted from arch/i386 by Gary Thomas 6 * Copyright (C) 1995-1996 Gary Thomas (gdt@linuxppc.org) 7 * Updated and modified by Cort Dougan <cort@fsmlabs.com> 8 * Copyright (C) 1996-2001 Cort Dougan --- 90 unchanged lines hidden (view full) --- 99 __asm__ __volatile__("lbz %0,%1(13)" 100 : "=r" (happened) : "i" (offsetof(struct paca_struct, irq_happened))); 101 102 return happened; 103} 104 105static inline notrace int decrementer_check_overflow(void) 106{ |
107 u64 now = get_tb_or_rtc(); | 107 u64 now = get_tb(); |
108 u64 *next_tb = this_cpu_ptr(&decrementers_next_tb); 109 110 return now >= *next_tb; 111} 112 113#ifdef CONFIG_PPC_BOOK3E 114 115/* This is called whenever we are re-enabling interrupts --- 713 unchanged lines hidden --- | 108 u64 *next_tb = this_cpu_ptr(&decrementers_next_tb); 109 110 return now >= *next_tb; 111} 112 113#ifdef CONFIG_PPC_BOOK3E 114 115/* This is called whenever we are re-enabling interrupts --- 713 unchanged lines hidden --- |