resctrlfs.c (ee0415681eb661efa1eb2db7acc263f2c7df1e23) | resctrlfs.c (4e5cb354c85eafe88709cefc2fdce4911fb6ac17) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 2/* 3 * Basic resctrl file system operations 4 * 5 * Copyright (C) 2018 Intel Corporation 6 * 7 * Authors: 8 * Sai Praneeth Prakhya <sai.praneeth.prakhya@intel.com>, --- 68 unchanged lines hidden (view full) --- 77 if (ret) 78 perror("# mount"); 79 80 return ret; 81} 82 83int umount_resctrlfs(void) 84{ | 1// SPDX-License-Identifier: GPL-2.0 2/* 3 * Basic resctrl file system operations 4 * 5 * Copyright (C) 2018 Intel Corporation 6 * 7 * Authors: 8 * Sai Praneeth Prakhya <sai.praneeth.prakhya@intel.com>, --- 68 unchanged lines hidden (view full) --- 77 if (ret) 78 perror("# mount"); 79 80 return ret; 81} 82 83int umount_resctrlfs(void) 84{ |
85 if (find_resctrl_mount(NULL)) 86 return 0; 87 |
|
85 if (umount(RESCTRL_PATH)) { 86 perror("# Unable to umount resctrl"); 87 88 return errno; 89 } 90 91 return 0; 92} --- 651 unchanged lines hidden --- | 88 if (umount(RESCTRL_PATH)) { 89 perror("# Unable to umount resctrl"); 90 91 return errno; 92 } 93 94 return 0; 95} --- 651 unchanged lines hidden --- |