1 // SPDX-License-Identifier: GPL-2.0
2 /* Copyright IBM Corp. 2020 */
4 #include <linux/compiler.h>
5 #include <linux/getcpu.h>
9 int __s390_vdso_getcpu(unsigned *cpu, unsigned *node, struct getcpu_cache *unused)
13 /* CPU number is stored in the programmable field of the TOD clock */
14 store_tod_clock_ext(&clk);
17 /* NUMA node is always zero */