2 * Implementation of get_cpuid().
4 * Copyright 2014 IBM Corp.
5 * Author(s): Alexander Yarygin <yarygin@linux.vnet.ibm.com>
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License (version 2 only)
9 * as published by the Free Software Foundation.
12 #include <sys/types.h>
17 #include "../../util/header.h"
19 int get_cpuid(char *buffer
, size_t sz
)
21 const char *cpuid
= "IBM/S390";
23 if (strlen(cpuid
) + 1 > sz
)
26 strcpy(buffer
, cpuid
);