clocksource.c (ad596171ed635c51a9eef829187af100cbf8dcf7) | clocksource.c (5d0cf410e94b1f1ff852c3f210d22cc6c5a27ffa) |
---|---|
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 --- 160 unchanged lines hidden (view full) --- 169} 170 171EXPORT_SYMBOL(register_clocksource); 172 173/** 174 * reselect_clocksource - Rescan list for next clocksource 175 * 176 * A quick helper function to be used if a clocksource changes its | 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 --- 160 unchanged lines hidden (view full) --- 169} 170 171EXPORT_SYMBOL(register_clocksource); 172 173/** 174 * reselect_clocksource - Rescan list for next clocksource 175 * 176 * A quick helper function to be used if a clocksource changes its |
177 * rating. Forces the clocksource list to be re-scaned for the best | 177 * rating. Forces the clocksource list to be re-scanned for the best |
178 * clocksource. 179 */ 180void reselect_clocksource(void) 181{ 182 unsigned long flags; 183 184 spin_lock_irqsave(&clocksource_lock, flags); 185 next_clocksource = select_clocksource(); --- 145 unchanged lines hidden (view full) --- 331 * boot_override_clock - Compatibility layer for deprecated boot option 332 * @str: override name 333 * 334 * DEPRECATED! Takes a clock= boot argument and uses it 335 * as the clocksource override name 336 */ 337static int __init boot_override_clock(char* str) 338{ | 178 * clocksource. 179 */ 180void reselect_clocksource(void) 181{ 182 unsigned long flags; 183 184 spin_lock_irqsave(&clocksource_lock, flags); 185 next_clocksource = select_clocksource(); --- 145 unchanged lines hidden (view full) --- 331 * boot_override_clock - Compatibility layer for deprecated boot option 332 * @str: override name 333 * 334 * DEPRECATED! Takes a clock= boot argument and uses it 335 * as the clocksource override name 336 */ 337static int __init boot_override_clock(char* str) 338{ |
339 printk("Warning! clock= boot option is deprecated.\n"); 340 | 339 if (!strcmp(str, "pmtmr")) { 340 printk("Warning: clock=pmtmr is deprecated. " 341 "Use clocksource=acpi_pm.\n"); 342 return boot_override_clocksource("acpi_pm"); 343 } 344 printk("Warning! clock= boot option is deprecated. " 345 "Use clocksource=xyz\n"); |
341 return boot_override_clocksource(str); 342} 343 344__setup("clock=", boot_override_clock); | 346 return boot_override_clocksource(str); 347} 348 349__setup("clock=", boot_override_clock); |