Blame SOURCES/0271-shared-cpu-set-util-remove-now-unused-CPU_SIZE_TO_NU.patch
|
Brian Stinson |
2593d8 |
From d6935e61de30967aa82b7722f36193ba782b75e4 Mon Sep 17 00:00:00 2001
|
|
Brian Stinson |
2593d8 |
From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= <zbyszek@in.waw.pl>
|
|
Brian Stinson |
2593d8 |
Date: Sun, 19 May 2019 18:08:39 +0200
|
|
Brian Stinson |
2593d8 |
Subject: [PATCH] shared/cpu-set-util: remove now-unused CPU_SIZE_TO_NUM()
|
|
Brian Stinson |
2593d8 |
|
|
Brian Stinson |
2593d8 |
(cherry picked from commit b12ef7141648be40fd8c4b0209a742f2151736d9)
|
|
Brian Stinson |
2593d8 |
|
|
Brian Stinson |
2593d8 |
Related: #1734787
|
|
Brian Stinson |
2593d8 |
---
|
|
Brian Stinson |
2593d8 |
src/basic/cpu-set-util.h | 6 ------
|
|
Brian Stinson |
2593d8 |
1 file changed, 6 deletions(-)
|
|
Brian Stinson |
2593d8 |
|
|
Brian Stinson |
2593d8 |
diff --git a/src/basic/cpu-set-util.h b/src/basic/cpu-set-util.h
|
|
Brian Stinson |
2593d8 |
index 3c546beb55..20612a8876 100644
|
|
Brian Stinson |
2593d8 |
--- a/src/basic/cpu-set-util.h
|
|
Brian Stinson |
2593d8 |
+++ b/src/basic/cpu-set-util.h
|
|
Brian Stinson |
2593d8 |
@@ -9,12 +9,6 @@
|
|
Brian Stinson |
2593d8 |
|
|
Brian Stinson |
2593d8 |
#include "macro.h"
|
|
Brian Stinson |
2593d8 |
|
|
Brian Stinson |
2593d8 |
-#ifdef __NCPUBITS
|
|
Brian Stinson |
2593d8 |
-#define CPU_SIZE_TO_NUM(n) ((n) * __NCPUBITS)
|
|
Brian Stinson |
2593d8 |
-#else
|
|
Brian Stinson |
2593d8 |
-#define CPU_SIZE_TO_NUM(n) ((n) * sizeof(cpu_set_t) * 8)
|
|
Brian Stinson |
2593d8 |
-#endif
|
|
Brian Stinson |
2593d8 |
-
|
|
Brian Stinson |
2593d8 |
DEFINE_TRIVIAL_CLEANUP_FUNC(cpu_set_t*, CPU_FREE);
|
|
Brian Stinson |
2593d8 |
#define _cleanup_cpu_free_ _cleanup_(CPU_FREEp)
|
|
Brian Stinson |
2593d8 |
|