Blame nptl/smp.h

Packit 6c4009
/* Determine whether the host has multiple processors.  Stub version.
Packit 6c4009
   Copyright (C) 1996-2018 Free Software Foundation, Inc.
Packit 6c4009
   This file is part of the GNU C Library.
Packit 6c4009
Packit 6c4009
   The GNU C Library is free software; you can redistribute it and/or
Packit 6c4009
   modify it under the terms of the GNU Library General Public License as
Packit 6c4009
   published by the Free Software Foundation; either version 2 of the
Packit 6c4009
   License, or (at your option) any later version.
Packit 6c4009
Packit 6c4009
   The GNU C Library is distributed in the hope that it will be useful,
Packit 6c4009
   but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit 6c4009
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit 6c4009
   Library General Public License for more details.
Packit 6c4009
Packit 6c4009
   You should have received a copy of the GNU Library General Public
Packit 6c4009
   License along with the GNU C Library; see the file COPYING.LIB.  If
Packit 6c4009
   not, see <http://www.gnu.org/licenses/>.  */
Packit 6c4009
Packit 6c4009
/* Test whether the machine has more than one processor.  This is not the
Packit 6c4009
   best test but good enough.  More complicated tests would require `malloc'
Packit 6c4009
   which is not available at that time.  */
Packit 6c4009
static inline int
Packit 6c4009
is_smp_system (void)
Packit 6c4009
{
Packit 6c4009
  /* Assume all machines are SMP and/or CMT and/or SMT.  */
Packit 6c4009
  return 1;
Packit 6c4009
}