diff options
author | AlmuHS <almuhs@github.com> | 2019-04-20 02:48:11 +0200 |
---|---|---|
committer | AlmuHS <almuhs@github.com> | 2019-04-20 02:49:02 +0200 |
commit | 28e9527b63feb091c4ed0d5dd6c4651a16a6dc96 (patch) | |
tree | 46aca837e715a49c1a048b0cf85f2e45cffc5488 /kern | |
parent | 8528bf9b477108327b88a3ffce97fbeb52f866c1 (diff) |
declared cpu_number() as inline and removed TODO
Diffstat (limited to 'kern')
-rw-r--r-- | kern/cpu_number.h | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/kern/cpu_number.h b/kern/cpu_number.h index b0b70bb6..0bfa61b2 100644 --- a/kern/cpu_number.h +++ b/kern/cpu_number.h @@ -1,25 +1,25 @@ -/* +/* * Mach Operating System * Copyright (c) 1991,1990,1989,1988 Carnegie Mellon University * All Rights Reserved. - * + * * Permission to use, copy, modify and distribute this software and its * documentation is hereby granted, provided that both the copyright * notice and this permission notice appear in all copies of the * software, derivative works or modified versions, and any portions * thereof, and that both notices appear in supporting documentation. - * + * * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS" * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE. - * + * * Carnegie Mellon requests users of this software to return to - * + * * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU * School of Computer Science * Carnegie Mellon University * Pittsburgh PA 15213-3890 - * + * * any improvements or extensions that they make and grant Carnegie Mellon * the rights to redistribute these changes. */ @@ -41,8 +41,7 @@ extern unsigned int master_cpu; /* 'master' processor - keeps time */ #else /* NCPUS == 1 */ -/*TODO: Get kernelID from cpus vector*/ -int cpu_number(); +inline int cpu_number(); #endif /* NCPUS != 1 */ |