clocksource.c (734efb467b31e56c2f9430590a9aa867ecf3eea1) | clocksource.c (ad596171ed635c51a9eef829187af100cbf8dcf7) |
---|---|
1/* 2 * linux/kernel/time/clocksource.c 3 * 4 * This file contains the functions which manage clocksource drivers. 5 * 6 * Copyright (C) 2004, 2005 IBM, John Stultz (johnstul@us.ibm.com) 7 * 8 * This program is free software; you can redistribute it and/or modify --- 42 unchanged lines hidden (view full) --- 51static DEFINE_SPINLOCK(clocksource_lock); 52static char override_name[32]; 53static int finished_booting; 54 55/* clocksource_done_booting - Called near the end of bootup 56 * 57 * Hack to avoid lots of clocksource churn at boot time 58 */ | 1/* 2 * linux/kernel/time/clocksource.c 3 * 4 * This file contains the functions which manage clocksource drivers. 5 * 6 * Copyright (C) 2004, 2005 IBM, John Stultz (johnstul@us.ibm.com) 7 * 8 * This program is free software; you can redistribute it and/or modify --- 42 unchanged lines hidden (view full) --- 51static DEFINE_SPINLOCK(clocksource_lock); 52static char override_name[32]; 53static int finished_booting; 54 55/* clocksource_done_booting - Called near the end of bootup 56 * 57 * Hack to avoid lots of clocksource churn at boot time 58 */ |
59static int clocksource_done_booting(void) | 59static int __init clocksource_done_booting(void) |
60{ 61 finished_booting = 1; 62 return 0; 63} 64 65late_initcall(clocksource_done_booting); 66 67/** --- 216 unchanged lines hidden (view full) --- 284 set_kset_name("clocksource"), 285}; 286 287static struct sys_device device_clocksource = { 288 .id = 0, 289 .cls = &clocksource_sysclass, 290}; 291 | 60{ 61 finished_booting = 1; 62 return 0; 63} 64 65late_initcall(clocksource_done_booting); 66 67/** --- 216 unchanged lines hidden (view full) --- 284 set_kset_name("clocksource"), 285}; 286 287static struct sys_device device_clocksource = { 288 .id = 0, 289 .cls = &clocksource_sysclass, 290}; 291 |
292static int init_clocksource_sysfs(void) | 292static int __init init_clocksource_sysfs(void) |
293{ 294 int error = sysdev_class_register(&clocksource_sysclass); 295 296 if (!error) 297 error = sysdev_register(&device_clocksource); 298 if (!error) 299 error = sysdev_create_file( 300 &device_clocksource, --- 44 unchanged lines hidden --- | 293{ 294 int error = sysdev_class_register(&clocksource_sysclass); 295 296 if (!error) 297 error = sysdev_register(&device_clocksource); 298 if (!error) 299 error = sysdev_create_file( 300 &device_clocksource, --- 44 unchanged lines hidden --- |