time.c (498495dba268b20e8eadd7fe93c140c68b6cc9d2) | time.c (82c849eb36fe6dcfa955b25c7aad71b5c1b4403c) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 2/* 3 * linux/arch/alpha/kernel/time.c 4 * 5 * Copyright (C) 1991, 1992, 1995, 1999, 2000 Linus Torvalds 6 * 7 * This file contains the clocksource time handling. 8 * 1997-09-10 Updated NTP code according to technical memorandum Jan '96 --- 228 unchanged lines hidden (view full) --- 237 outb(0x36, 0x43); /* pit counter 0: system timer */ 238 outb(0x00, 0x40); 239 outb(0x00, 0x40); 240 241 outb(0xb6, 0x43); /* pit counter 2: speaker */ 242 outb(0x31, 0x42); 243 outb(0x13, 0x42); 244 | 1// SPDX-License-Identifier: GPL-2.0 2/* 3 * linux/arch/alpha/kernel/time.c 4 * 5 * Copyright (C) 1991, 1992, 1995, 1999, 2000 Linus Torvalds 6 * 7 * This file contains the clocksource time handling. 8 * 1997-09-10 Updated NTP code according to technical memorandum Jan '96 --- 228 unchanged lines hidden (view full) --- 237 outb(0x36, 0x43); /* pit counter 0: system timer */ 238 outb(0x00, 0x40); 239 outb(0x00, 0x40); 240 241 outb(0xb6, 0x43); /* pit counter 2: speaker */ 242 outb(0x31, 0x42); 243 outb(0x13, 0x42); 244 |
245 init_rtc_irq(); | 245 init_rtc_irq(NULL); |
246} 247 248 249#ifndef CONFIG_ALPHA_WTINT 250/* 251 * The RPCC as a clocksource primitive. 252 * 253 * While we have free-running timecounters running on all CPUs, and we make --- 137 unchanged lines hidden (view full) --- 391{ 392 unsigned int cc1, cc2; 393 unsigned long cycle_freq, tolerance; 394 long diff; 395 396 if (alpha_using_qemu) { 397 clocksource_register_hz(&qemu_cs, NSEC_PER_SEC); 398 init_qemu_clockevent(); | 246} 247 248 249#ifndef CONFIG_ALPHA_WTINT 250/* 251 * The RPCC as a clocksource primitive. 252 * 253 * While we have free-running timecounters running on all CPUs, and we make --- 137 unchanged lines hidden (view full) --- 391{ 392 unsigned int cc1, cc2; 393 unsigned long cycle_freq, tolerance; 394 long diff; 395 396 if (alpha_using_qemu) { 397 clocksource_register_hz(&qemu_cs, NSEC_PER_SEC); 398 init_qemu_clockevent(); |
399 400 timer_irqaction.handler = qemu_timer_interrupt; 401 init_rtc_irq(); | 399 init_rtc_irq(qemu_timer_interrupt); |
402 return; 403 } 404 405 /* Calibrate CPU clock -- attempt #1. */ 406 if (!est_cycle_freq) 407 est_cycle_freq = validate_cc_value(calibrate_cc_with_pit()); 408 409 cc1 = rpcc(); --- 51 unchanged lines hidden --- | 400 return; 401 } 402 403 /* Calibrate CPU clock -- attempt #1. */ 404 if (!est_cycle_freq) 405 est_cycle_freq = validate_cc_value(calibrate_cc_with_pit()); 406 407 cc1 = rpcc(); --- 51 unchanged lines hidden --- |