time.c (d6444094042b4f4b4623dc1a2437f61309b9b34b) | time.c (f9a015391e8908e68bd3147a8a5d8ac5f3ea2126) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * linux/arch/m68k/kernel/time.c 4 * 5 * Copyright (C) 1991, 1992, 1995 Linus Torvalds 6 * 7 * This file contains the m68k-specific time handling details. 8 * Most of the stuff is located in the machine specific files. --- 21 unchanged lines hidden (view full) --- 30#include <linux/time.h> 31#include <linux/timex.h> 32#include <linux/profile.h> 33 34 35unsigned long (*mach_random_get_entropy)(void); 36EXPORT_SYMBOL_GPL(mach_random_get_entropy); 37 | 1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * linux/arch/m68k/kernel/time.c 4 * 5 * Copyright (C) 1991, 1992, 1995 Linus Torvalds 6 * 7 * This file contains the m68k-specific time handling details. 8 * Most of the stuff is located in the machine specific files. --- 21 unchanged lines hidden (view full) --- 30#include <linux/time.h> 31#include <linux/timex.h> 32#include <linux/profile.h> 33 34 35unsigned long (*mach_random_get_entropy)(void); 36EXPORT_SYMBOL_GPL(mach_random_get_entropy); 37 |
38 39/* 40 * timer_interrupt() needs to keep up the real-time clock, 41 * as well as call the "xtime_update()" routine every clocktick 42 */ 43static irqreturn_t timer_interrupt(int irq, void *dummy) 44{ 45 xtime_update(1); 46 update_process_times(user_mode(get_irq_regs())); 47 profile_tick(CPU_PROFILING); 48 return IRQ_HANDLED; 49} 50 | |
51#ifdef CONFIG_HEARTBEAT 52void timer_heartbeat(void) 53{ 54 /* use power LED as a heartbeat instead -- much more useful 55 for debugging -- based on the version for PReP by Cort */ 56 /* acts like an actual heart beat -- ie thump-thump-pause... */ 57 if (mach_heartbeat) { 58 static unsigned cnt = 0, period = 0, dist = 0; --- 93 unchanged lines hidden (view full) --- 152} 153 154module_init(rtc_init); 155#endif /* CONFIG_RTC_DRV_GENERIC */ 156#endif /* CONFIG M68KCLASSIC */ 157 158void __init time_init(void) 159{ | 38#ifdef CONFIG_HEARTBEAT 39void timer_heartbeat(void) 40{ 41 /* use power LED as a heartbeat instead -- much more useful 42 for debugging -- based on the version for PReP by Cort */ 43 /* acts like an actual heart beat -- ie thump-thump-pause... */ 44 if (mach_heartbeat) { 45 static unsigned cnt = 0, period = 0, dist = 0; --- 93 unchanged lines hidden (view full) --- 139} 140 141module_init(rtc_init); 142#endif /* CONFIG_RTC_DRV_GENERIC */ 143#endif /* CONFIG M68KCLASSIC */ 144 145void __init time_init(void) 146{ |
160 mach_sched_init(timer_interrupt); | 147 mach_sched_init(); |
161} | 148} |