Merge trunk version 207649 into gupc branch.
[official-gcc.git] / libgupc / smp / upc_affinity_stub.c
blob27536025aa89583ffc7ade3077c116bd6f277560
1 /* Copyright (C) 2008-2014 Free Software Foundation, Inc.
2 This file is part of the UPC runtime library.
3 Written by Gary Funck <gary@intrepid.com>
4 and Nenad Vukicevic <nenad@intrepid.com>
6 This file is part of GCC.
8 GCC is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation; either version 3, or (at your option)
11 any later version.
13 GCC is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
18 Under Section 7 of GPL version 3, you are granted additional
19 permissions described in the GCC Runtime Library Exception, version
20 3.1, as published by the Free Software Foundation.
22 You should have received a copy of the GNU General Public License and
23 a copy of the GCC Runtime Library Exception along with this program;
24 see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
25 <http://www.gnu.org/licenses/>. */
28 #include "upc_config.h"
29 #include "upc_sysdep.h"
30 #include "upc_defs.h"
31 #include "upc_affinity.h"
33 int
34 __upc_affinity_supported (void)
36 return 0;
39 int
40 __upc_affinity_init (const upc_info_p ARG_UNUSED (u),
41 const upc_cpu_avoid_p ARG_UNUSED (avoid),
42 const char **ARG_UNUSED (err_msg))
44 return 1;
47 upc_cpu_avoid_p
48 __upc_affinity_cpu_avoid_new (void)
50 return NULL;
53 void
54 __upc_affinity_cpu_avoid_free (const upc_cpu_avoid_p ARG_UNUSED (avoid))
58 void
59 __upc_affinity_cpu_avoid_set (const int ARG_UNUSED (cpu),
60 const upc_cpu_avoid_p ARG_UNUSED (avoid))
64 void
65 __upc_affinity_set (const upc_info_p ARG_UNUSED (u),
66 const int ARG_UNUSED (thread_id))