time.c (85a3685852d9ac7d92be9d824533c915a4597fa4) | time.c (b6c295df3131c6fa25f8f29625ee0609506150ad) |
---|---|
1/* 2 * Common time routines among all ppc machines. 3 * 4 * Written by Cort Dougan (cort@cs.nmt.edu) to merge 5 * Paul Mackerras' version and mine for PReP and Pmac. 6 * MPC8xx/MBX changes by Dan Malek (dmalek@jlc.net). 7 * Converted for 64-bit by Mike Corrigan (mikejc@us.ibm.com) 8 * --- 594 unchanged lines hidden (view full) --- 603void arch_suspend_enable_irqs(void) 604{ 605 generic_suspend_enable_irqs(); 606 if (ppc_md.suspend_enable_irqs) 607 ppc_md.suspend_enable_irqs(); 608} 609#endif 610 | 1/* 2 * Common time routines among all ppc machines. 3 * 4 * Written by Cort Dougan (cort@cs.nmt.edu) to merge 5 * Paul Mackerras' version and mine for PReP and Pmac. 6 * MPC8xx/MBX changes by Dan Malek (dmalek@jlc.net). 7 * Converted for 64-bit by Mike Corrigan (mikejc@us.ibm.com) 8 * --- 594 unchanged lines hidden (view full) --- 603void arch_suspend_enable_irqs(void) 604{ 605 generic_suspend_enable_irqs(); 606 if (ppc_md.suspend_enable_irqs) 607 ppc_md.suspend_enable_irqs(); 608} 609#endif 610 |
611unsigned long long tb_to_ns(unsigned long long ticks) 612{ 613 return mulhdu(ticks, tb_to_ns_scale) << tb_to_ns_shift; 614} 615EXPORT_SYMBOL_GPL(tb_to_ns); 616 |
|
611/* 612 * Scheduler clock - returns current time in nanosec units. 613 * 614 * Note: mulhdu(a, b) (multiply high double unsigned) returns 615 * the high 64 bits of a * b, i.e. (a * b) >> 64, where a and b 616 * are 64-bit unsigned numbers. 617 */ 618unsigned long long sched_clock(void) --- 503 unchanged lines hidden --- | 617/* 618 * Scheduler clock - returns current time in nanosec units. 619 * 620 * Note: mulhdu(a, b) (multiply high double unsigned) returns 621 * the high 64 bits of a * b, i.e. (a * b) >> 64, where a and b 622 * are 64-bit unsigned numbers. 623 */ 624unsigned long long sched_clock(void) --- 503 unchanged lines hidden --- |