platform.c (256281) | platform.c (262675) |
---|---|
1/*- 2 * Copyright (c) 2005 Peter Grehan 3 * Copyright (c) 2009 Nathan Whitehorn 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 13 unchanged lines hidden (view full) --- 22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25 * SUCH DAMAGE. 26 * 27 */ 28 29#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2005 Peter Grehan 3 * Copyright (c) 2009 Nathan Whitehorn 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 13 unchanged lines hidden (view full) --- 22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25 * SUCH DAMAGE. 26 * 27 */ 28 29#include <sys/cdefs.h> |
30__FBSDID("$FreeBSD: stable/10/sys/powerpc/powerpc/platform.c 255417 2013-09-09 12:49:19Z nwhitehorn $"); | 30__FBSDID("$FreeBSD: stable/10/sys/powerpc/powerpc/platform.c 262675 2014-03-02 02:35:46Z jhibbits $"); |
31 32/* 33 * Dispatch platform calls to the appropriate platform implementation 34 * through a previously registered kernel object. 35 */ 36 37#include <sys/param.h> 38#include <sys/kernel.h> --- 73 unchanged lines hidden (view full) --- 112} 113 114u_long 115platform_timebase_freq(struct cpuref *cpu) 116{ 117 return (PLATFORM_TIMEBASE_FREQ(plat_obj, cpu)); 118} 119 | 31 32/* 33 * Dispatch platform calls to the appropriate platform implementation 34 * through a previously registered kernel object. 35 */ 36 37#include <sys/param.h> 38#include <sys/kernel.h> --- 73 unchanged lines hidden (view full) --- 112} 113 114u_long 115platform_timebase_freq(struct cpuref *cpu) 116{ 117 return (PLATFORM_TIMEBASE_FREQ(plat_obj, cpu)); 118} 119 |
120/* 121 * Put the current CPU, as last step in suspend, to sleep 122 */ 123void 124platform_sleep() 125{ 126 PLATFORM_SLEEP(plat_obj); 127} 128 |
|
120int 121platform_smp_first_cpu(struct cpuref *cpu) 122{ 123 return (PLATFORM_SMP_FIRST_CPU(plat_obj, cpu)); 124} 125 126int 127platform_smp_next_cpu(struct cpuref *cpu) --- 111 unchanged lines hidden --- | 129int 130platform_smp_first_cpu(struct cpuref *cpu) 131{ 132 return (PLATFORM_SMP_FIRST_CPU(plat_obj, cpu)); 133} 134 135int 136platform_smp_next_cpu(struct cpuref *cpu) --- 111 unchanged lines hidden --- |