Merge back earlier cpufreq fixes for v4.4.
[deliverable/linux.git] / arch / s390 / include / asm / schid.h
CommitLineData
9d92a7e1
CH
1#ifndef ASM_SCHID_H
2#define ASM_SCHID_H
a8237fc4 3
1378ee9b 4#include <linux/string.h>
9807f759 5#include <uapi/asm/schid.h>
a8237fc4
CH
6
7/* Helper function for sane state of pre-allocated subchannel_id. */
8static inline void
9init_subchannel_id(struct subchannel_id *schid)
10{
11 memset(schid, 0, sizeof(struct subchannel_id));
12 schid->one = 1;
13}
14
15static inline int
16schid_equal(struct subchannel_id *schid1, struct subchannel_id *schid2)
17{
18 return !memcmp(schid1, schid2, sizeof(struct subchannel_id));
19}
20
9d92a7e1 21#endif /* ASM_SCHID_H */
This page took 0.816651 seconds and 5 git commands to generate.