vas.c (651a88798412e216f337d70181127e847f00a4b7) | vas.c (1fd02f6605b855b4af2883f29a2abc88bdf17857) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-or-later 2/* 3 * Copyright 2020-21 IBM Corp. 4 */ 5 6#define pr_fmt(fmt) "vas: " fmt 7 8#include <linux/module.h> --- 793 unchanged lines hidden (view full) --- 802 803 new_nr_creds = be16_to_cpu(hv_cop_caps.target_lpar_creds); 804 805 old_nr_creds = atomic_read(&caps->nr_total_credits); 806 807 atomic_set(&caps->nr_total_credits, new_nr_creds); 808 /* 809 * The total number of available credits may be decreased or | 1// SPDX-License-Identifier: GPL-2.0-or-later 2/* 3 * Copyright 2020-21 IBM Corp. 4 */ 5 6#define pr_fmt(fmt) "vas: " fmt 7 8#include <linux/module.h> --- 793 unchanged lines hidden (view full) --- 802 803 new_nr_creds = be16_to_cpu(hv_cop_caps.target_lpar_creds); 804 805 old_nr_creds = atomic_read(&caps->nr_total_credits); 806 807 atomic_set(&caps->nr_total_credits, new_nr_creds); 808 /* 809 * The total number of available credits may be decreased or |
810 * inceased with DLPAR operation. Means some windows have to be | 810 * increased with DLPAR operation. Means some windows have to be |
811 * closed / reopened. Hold the vas_pseries_mutex so that the 812 * the user space can not open new windows. 813 */ 814 if (old_nr_creds < new_nr_creds) { 815 /* 816 * If the existing target credits is less than the new 817 * target, reopen windows if they are closed due to 818 * the previous DLPAR (core removal). --- 214 unchanged lines hidden --- | 811 * closed / reopened. Hold the vas_pseries_mutex so that the 812 * the user space can not open new windows. 813 */ 814 if (old_nr_creds < new_nr_creds) { 815 /* 816 * If the existing target credits is less than the new 817 * target, reopen windows if they are closed due to 818 * the previous DLPAR (core removal). --- 214 unchanged lines hidden --- |