Deleted Added
full compact
interrupt.c (151885) interrupt.c (153666)
1/* $FreeBSD: head/sys/ia64/ia64/interrupt.c 151885 2005-10-30 17:23:01Z marcel $ */
1/* $FreeBSD: head/sys/ia64/ia64/interrupt.c 153666 2005-12-22 22:16:09Z jhb $ */
2/* $NetBSD: interrupt.c,v 1.23 1998/02/24 07:38:01 thorpej Exp $ */
3
4/*-
5 * Copyright (c) 1994, 1995, 1996 Carnegie-Mellon University.
6 * All rights reserved.
7 *
8 * Authors: Keith Bostic, Chris G. Demetriou
9 *

--- 158 unchanged lines hidden (view full) ---

168 itc = ia64_get_itc();
169 ia64_set_itm(itc + ia64_clock_reload - adj);
170 clk = PCPU_GET(clock);
171 delta = itc - clk;
172 count = 0;
173 while (delta >= ia64_clock_reload) {
174 /* Only the BSP runs the real clock */
175 if (PCPU_GET(cpuid) == 0)
2/* $NetBSD: interrupt.c,v 1.23 1998/02/24 07:38:01 thorpej Exp $ */
3
4/*-
5 * Copyright (c) 1994, 1995, 1996 Carnegie-Mellon University.
6 * All rights reserved.
7 *
8 * Authors: Keith Bostic, Chris G. Demetriou
9 *

--- 158 unchanged lines hidden (view full) ---

168 itc = ia64_get_itc();
169 ia64_set_itm(itc + ia64_clock_reload - adj);
170 clk = PCPU_GET(clock);
171 delta = itc - clk;
172 count = 0;
173 while (delta >= ia64_clock_reload) {
174 /* Only the BSP runs the real clock */
175 if (PCPU_GET(cpuid) == 0)
176 hardclock((struct clockframe *)tf);
176 hardclock(TRAPF_USERMODE(tf), TRAPF_PC(tf));
177 else
177 else
178 hardclock_process((struct clockframe *)tf);
178 hardclock_cpu(TRAPF_USERMODE(tf));
179 if (profprocs != 0)
179 if (profprocs != 0)
180 profclock((struct clockframe *)tf);
181 statclock((struct clockframe *)tf);
180 profclock(TRAPF_USERMODE(tf), TRAPF_PC(tf));
181 statclock(TRAPF_USERMODE(tf));
182 delta -= ia64_clock_reload;
183 clk += ia64_clock_reload;
184 if (adj != 0)
185 adjust_ticks++;
186 count++;
187 }
188 if (count > 0) {
189 adjust_lost += count - 1;

--- 244 unchanged lines hidden ---
182 delta -= ia64_clock_reload;
183 clk += ia64_clock_reload;
184 if (adj != 0)
185 adjust_ticks++;
186 count++;
187 }
188 if (count > 0) {
189 adjust_lost += count - 1;

--- 244 unchanged lines hidden ---