blob: 0f9f361fe7eec89d611054be9a40b1d78691df3e [file] [log] [blame]
Furquan Shaikh2af76f42014-04-28 16:39:40 -07001/*
2 * This file is part of the coreboot project.
3 *
4 * Copyright 2013 Google Inc.
5 *
Aaron Durbin0b0a1e32014-09-06 01:28:54 -05006 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; version 2 of the License.
Furquan Shaikh2af76f42014-04-28 16:39:40 -07009 *
Aaron Durbin0b0a1e32014-09-06 01:28:54 -050010 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
Furquan Shaikh2af76f42014-04-28 16:39:40 -070014 *
Aaron Durbin0b0a1e32014-09-06 01:28:54 -050015 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA, 02110-1301 USA
Furquan Shaikh2af76f42014-04-28 16:39:40 -070018 */
Aaron Durbin0b0a1e32014-09-06 01:28:54 -050019
Furquan Shaikh2af76f42014-04-28 16:39:40 -070020#include <stdlib.h>
21#include <arch/cpu.h>
22
Aaron Durbin1b315d02014-08-27 10:30:39 -050023static struct cpu_info cpu_infos[CONFIG_MAX_CPUS];
24
Furquan Shaikh2af76f42014-04-28 16:39:40 -070025struct cpu_info *cpu_info(void)
26{
Aaron Durbin1b315d02014-08-27 10:30:39 -050027 return &cpu_infos[smp_processor_id()];
Furquan Shaikh2af76f42014-04-28 16:39:40 -070028}