time.h (c74a7469f97c0f40b46e82ee979f9fb1bb6e847c) | time.h (d7cceda96badc1bd444cff27ab9c375a1277c1e3) |
---|---|
1/* 2 * Common time prototypes and such for 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 * 7 * This program is free software; you can redistribute it and/or 8 * modify it under the terms of the GNU General Public License --- 29 unchanged lines hidden (view full) --- 38 39struct div_result { 40 u64 result_high; 41 u64 result_low; 42}; 43 44/* Accessor functions for the timebase (RTC on 601) registers. */ 45/* If one day CONFIG_POWER is added just define __USE_RTC as 1 */ | 1/* 2 * Common time prototypes and such for 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 * 7 * This program is free software; you can redistribute it and/or 8 * modify it under the terms of the GNU General Public License --- 29 unchanged lines hidden (view full) --- 38 39struct div_result { 40 u64 result_high; 41 u64 result_low; 42}; 43 44/* Accessor functions for the timebase (RTC on 601) registers. */ 45/* If one day CONFIG_POWER is added just define __USE_RTC as 1 */ |
46#ifdef CONFIG_6xx | 46#ifdef CONFIG_PPC_BOOK3S_32 |
47#define __USE_RTC() (cpu_has_feature(CPU_FTR_USE_RTC)) 48#else 49#define __USE_RTC() 0 50#endif 51 52#ifdef CONFIG_PPC64 53 54/* For compatibility, get_tbl() is defined as get_tb() on ppc64 */ --- 151 unchanged lines hidden --- | 47#define __USE_RTC() (cpu_has_feature(CPU_FTR_USE_RTC)) 48#else 49#define __USE_RTC() 0 50#endif 51 52#ifdef CONFIG_PPC64 53 54/* For compatibility, get_tbl() is defined as get_tb() on ppc64 */ --- 151 unchanged lines hidden --- |