We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4dfe1f1 commit 07975d3Copy full SHA for 07975d3
lib/vsc/utils/affinity.py
@@ -234,18 +234,6 @@ def sched_getcpu():
234
"""Get currently used cpu"""
235
return _libc.sched_getcpu()
236
237
-#Utility function
238
-# tobin not used anymore
239
-def tobin(s):
240
- """Convert integer to binary format"""
241
- # bin() missing in 2.4
242
- # eg: self.cpus.extend([int(x) for x in tobin(bitmask).zfill(NCPUBITS)[::-1]])
243
- if s <= 1:
244
- return str(s)
245
- else:
246
- return tobin(s >> 1) + str(s & 1)
247
-
248
249
#/* Return the highest priority of any process specified by WHICH and WHO
250
# (see above); if WHO is zero, the current process, process group, or user
251
# (as specified by WHO) is used. A lower priority number means higher
0 commit comments