blob: e63b079a5d9ea27a8fe023641a5e04fe246ccdc9 [file] [log] [blame]
/*
* Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com)
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/
#ifndef __ASM_ARC_SMP_H
#define __ASM_ARC_SMP_H
#include <linux/threads.h>
#define raw_smp_processor_id() (current_thread_info()->cpu)
/*
* Setup the SMP cpu_possible_map
*/
extern void smp_init_cpus(void);
/* TODO-vineetg
shd have hard_smp_processor_id as well in case we need it
*/
typedef struct {
void *stack;
void *c_entry;
int cpu_id;
}
secondary_boot_t;
#endif