Commit 169ceac4 authored by Heiko Carstens's avatar Heiko Carstens Committed by Vasily Gorbik
Browse files

s390/vdso: use union tod_clock

parent f8d8977a
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -8,12 +8,12 @@

int __s390_vdso_getcpu(unsigned *cpu, unsigned *node, struct getcpu_cache *unused)
{
	__u16 todval[8];
	union tod_clock clk;

	/* CPU number is stored in the programmable field of the TOD clock */
	get_tod_clock_ext((char *)todval);
	store_tod_clock_ext(&clk);
	if (cpu)
		*cpu = todval[7];
		*cpu = clk.pf;
	/* NUMA node is always zero */
	if (node)
		*node = 0;